This section describes how to view VXLAN tunnel information using the rpc method.
Operation |
XPATH |
|---|---|
get |
/huawei-vxlan/huawei-vxlan:vxlan/vxlan-state |
None
<?xml version='1.0' encoding='UTF-8'?>
<rpc message-id="2" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<get>
<filter type="subtree">
<hw-vxlan:vxlan xmlns:hw-vxlan="urn:huawei:params:xml:ns:yang:huawei-vxlan">
<hw-vxlan:vxlan-state>
<hw-vxlan:vxlan-tunnels/>
</hw-vxlan:vxlan-state>
</hw-vxlan:vxlan>
</filter>
</get>
</rpc>
Sample of successful response
<?xml version='1.0' encoding='UTF-8'?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="0">
<data>
<vxlan xmlns="urn:huawei:params:xml:ns:yang:huawei-vxlan">
<vxlan-state>
<vxlan-tunnels>
<vxlan-tunnel>
<local-address>10.2.2.2</local-address>
<peer-address>10.3.3.3</peer-address>
<vxlan-tunnel-state>down</vxlan-tunnel-state>
</vxlan-tunnel>
</vxlan-tunnels>
</vxlan-state>
</vxlan>
</data>
</rpc-reply>
Sample of failed response
None