< Home

View VXLAN Tunnel Information

This section describes how to view VXLAN tunnel information using the rpc method.

Table 1 View VXLAN tunnel information

Operation

XPATH

get

/huawei-vxlan/huawei-vxlan:vxlan/vxlan-state

Data requirement

None

Request example

<?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>

Response example

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

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic