This section provides a sample of querying PnP VLAN auto-negotiation information using the get method.
Operation |
XPATH |
---|---|
get |
/huawei-pnp-management:pnp-state |
Request Example
<?xml version='1.0' encoding='UTF-8'?> <rpc message-id="0" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <get> <filter type="subtree"> <pnpm:pnp-state xmlns:pnpm="urn:huawei:yang:huawei-pnp-management"/> </filter> </get> </rpc>
Response Example
<?xml version='1.0' encoding='UTF-8'?> <rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="0"> <data> <pnp-state xmlns="urn:huawei:yang:huawei-pnp-management"> <startup-vlan> <receive-vlan-id>100</receive-vlan-id> </startup-vlan> <uplinks> <uplink> <name>Eth-Trunk0</name> <lag-negotiation>true</lag-negotiation> <lacp-negotiation>true</lacp-negotiation> <assign-interface>GigabitEthernet0/0/10</assign-interface> <assign-interface>GigabitEthernet0/0/12</assign-interface> </uplink> </uplinks> </pnp-state> </data> </rpc-reply>