No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

S600-E V200R011C10 NETCONF YANG API Reference

This document describes the NETCONF API functions supported by the switch, including the data model and samples.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Stack Management

Stack Management

Data Model

The configuration model file matching stack management is huawei-stack.yang.

Table 2-90  Stack management configuration

Object

Description

Value Remarks

huawei-vlan:vlans/hw-stack:stacking-vlan

Indicates the reserved VLAN ID of a stack.

The value is an integer that ranges from 1 to 4094.

NA

huawei-board:boards/board/hw-stack:priority

Indicates the stack priority of a stack member switch.

The value is an integer that ranges from 1 to 255.

A stack ID also needs to be specified for the member switch, the stack ID ranges from 0 to 8.

huawei-stack:stack-config/delaytime

Indicates the system MAC address switching delay.

The value is an integer that ranges from 0 to 60, in minutes.

NA

huawei-stack:new-stackid/old-stackid

Indicates the old stack ID of a member switch.

The value is an integer that ranges from 0 to 8.

This object can be used to change the stack ID of a member switch.

huawei-stack:new-stackid/stackid

Indicates the new stack ID of a member switch.

The value is an integer that ranges from 0 to 8.

This object can be used to change the stack ID of a member switch.

huawei-stack:led-enable/duration

Indicates the duration in which interface indicators show stack IDs of member switches.

The value is an integer that ranges from 30 to 600, in seconds.

NA

huawei-stack:stack-save

Saves the configuration that is automatically generated for dedicated cable stacking to the flash memory.

NA

NA

huawei-board/boards-state/board/hw-stack:role

Indicates the role of a member switch.

The value is a character string:
  • master: master switch
  • standby: standby switch
  • slave: slave switch

Only the Get operation is supported.

huawei-stack/stack-state:enable

Indicates whether the stacking function is enabled on a switch.

The value is of the Boolean type:
  • true: The stacking function is enabled.
  • false: The stacking function is disabled.

Only the Get operation is supported.

huawei-board:boards-state/board/hw-stack:stacking-ports/port-number

Indicates a logical stack port number.

The value is 1 or 2.

Only the Get operation is supported.

huawei-board:boards-state/board/hw-stack:stacking-ports/ports/port

Indicates a stack member port.

The value depends on the device configuration.

Only the Get operation is supported.

huawei-board:boards-state/board/huawei-stack:stacking-ports/ports/tag

Indicates the master/slave end tag for the stack cable used in dedicated cable stacking.

This field displays Master when the master end is connected or does not display when the slave end is connected.

The value can be obtained only when a dedicated stack cable is used.

huawei-board:boards-state/board/hw-stack:stacking-ports/ports/port/peer-port

Indicates a logical stack port number of the peer end.

The value is 1 or 2.

Only the Get operation is supported.

huawei-board:boards-state/board/hw-stack:stacking-ports/peer-stacking-port

Indicates a stack member port of the peer end.

The value depends on the device configuration.

Only the Get operation is supported.

huawei-board:boards-state/board/hw-stack:stacking-ports/peer-board-name

Indicates the device ID of the peer port.

The value is an integer that ranges from 0 to 8.

Only the Get operation is supported.

Configuring a Reserved VLAN for a Stack

This section describes how to configure a reserved VLAN for a stack using the config method.

Table 2-91  Configuring a reserved VLAN for a stack

Operation

XPATH

edit-config:config

huawei-vlan:vlans/hw-stack:stacking-vlan

Data requirement 1

Table 2-92  Configuring a reserved VLAN for a stack

Item

Data

Description

Reserved VLAN ID of a stack

4001

Changes the reserved VLAN ID of a stack from the default value 4093 to 4001.

Request example

<?xml version='1.0' encoding='UTF-8'?>
<rpc message-id="6" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
  <edit-config>
    <target>
      <running/>
    </target>
    <config>
      <huawei-vlan:vlans xmlns:huawei-vlan="urn:huawei:params:xml:ns:yang:huawei-vlan">
        <hw-stack:stacking-vlan xmlns:hw-stack="urn:huawei:params:xml:ns:yang:huawei-stack">4001</hw-stack:stacking-vlan>
      </huawei-vlan:vlans>
    </config>
  </edit-config>
</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="8">
  <ok/>
</rpc-reply>

Sample of failed response

<?xml version='1.0' encoding='UTF-8'?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="9">
  <rpc-error>
    <error-type>application</error-type>
    <error-tag>operation-failed</error-tag>
    <error-severity>error</error-severity>
    <error-message>parse rpc config error.</error-message>
  </rpc-error>
</rpc-reply>

Data requirement 2

Table 2-93  Changing the reserved VLAN ID of a stack

Item

Data

Description

Reserved VLAN ID of a stack

4002

Changes the reserved VLAN ID of a stack from 4001 to 4002.

Replacement example

<?xml version='1.0' encoding='UTF-8'?>
<rpc message-id="5" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
  <edit-config>
    <target>
      <running/>
    </target>
    <config>
      <huawei-vlan:vlans xmlns:huawei-vlan="urn:huawei:params:xml:ns:yang:huawei-vlan">
        <hw-stack:stacking-vlan xmlns:hw-stack="urn:huawei:params:xml:ns:yang:huawei-stack" xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0" xc:operation="replace">4002</hw-stack:stacking-vlan>
      </huawei-vlan:vlans>
    </config>
  </edit-config>
</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="8">
  <ok/>
</rpc-reply>

Sample of failed response

<?xml version='1.0' encoding='UTF-8'?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="9">
  <rpc-error>
    <error-type>application</error-type>
    <error-tag>operation-failed</error-tag>
    <error-severity>error</error-severity>
    <error-message>parse rpc config error.</error-message>
  </rpc-error>
</rpc-reply>

Data requirement 3

Table 2-94  Deleting the default reserved VLAN ID of a stack

Item

Data

Description

Reserved VLAN ID of a stack

4002

Restores the reserved VLAN ID of a stack from 4002 to the default value 4093.

Deletion example

<?xml version='1.0' encoding='UTF-8'?>
<rpc message-id="3" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
  <edit-config>
    <target>
      <running/>
    </target>
    <config>
      <huawei-vlan:vlans xmlns:huawei-vlan="urn:huawei:params:xml:ns:yang:huawei-vlan">
        <hw-stack:stacking-vlan xmlns:hw-stack="urn:huawei:params:xml:ns:yang:huawei-stack" xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0" xc:operation="delete">4002</hw-stack:stacking-vlan>
      </huawei-vlan:vlans>
    </config>
  </edit-config>
</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="8">
  <ok/>
</rpc-reply>

Sample of failed response

<?xml version='1.0' encoding='UTF-8'?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="9">
  <rpc-error>
    <error-type>application</error-type>
    <error-tag>operation-failed</error-tag>
    <error-severity>error</error-severity>
    <error-message>parse rpc config error.</error-message>
  </rpc-error>
</rpc-reply>

Configuring a Stack Priority for a Stack Member Switch

This section describes how to configure a stack priority for a stack member switch using the config method.

Table 2-95  Configuring a stack priority for a member switch

Operation

XPATH

edit-config:config

huawei-board:boards/board/hw-stack:priority

Data requirement 1

Table 2-96  Configuring a stack priority for a member switch

Item

Data

Description

Stack priority of a member switch

102

Changes the stack priority of a member switch from the default value 100 to 102.

Request example

<?xml version='1.0' encoding='UTF-8'?>
<rpc message-id="24" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
  <edit-config>
    <target>
      <running/>
    </target>
    <config>
      <board:boards xmlns:board="urn:huawei:params:xml:ns:yang:huawei-board">
        <board:board>
          <board:name>0</board:name>
          <hw-stack:priority xmlns:hw-stack="urn:huawei:params:xml:ns:yang:huawei-stack">102</hw-stack:priority>
        </board:board>
      </board:boards>
    </config>
  </edit-config>
</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="8">
  <ok/>
</rpc-reply>

Sample of failed response

<?xml version='1.0' encoding='UTF-8'?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="9">
  <rpc-error>
    <error-type>application</error-type>
    <error-tag>operation-failed</error-tag>
    <error-severity>error</error-severity>
    <error-message>parse rpc config error.</error-message>
  </rpc-error>
</rpc-reply>

Data requirement 2

Table 2-97  Changing the stack priority of a member switch

Item

Data

Description

Stack priority of a member switch

112

Changes the stack priority of a member switch from 102 to 112.

Replacement example

<?xml version='1.0' encoding='UTF-8'?>
<rpc message-id="26" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
  <edit-config>
    <target>
      <running/>
    </target>
    <config>
      <board:boards xmlns:board="urn:huawei:params:xml:ns:yang:huawei-board">
        <board:board>
          <board:name>0</board:name>
          <hw-stack:priority xmlns:hw-stack="urn:huawei:params:xml:ns:yang:huawei-stack" xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0" xc:operation="replace">112</hw-stack:priority>
        </board:board>
      </board:boards>
    </config>
  </edit-config>
</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="8">
  <ok/>
</rpc-reply>

Sample of failed response

<?xml version='1.0' encoding='UTF-8'?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="9">
  <rpc-error>
    <error-type>application</error-type>
    <error-tag>operation-failed</error-tag>
    <error-severity>error</error-severity>
    <error-message>parse rpc config error.</error-message>
  </rpc-error>
</rpc-reply>

Data requirement 3

Table 2-98  Deleting the stack priority of a member switch

Item

Data

Description

Stack priority of a member switch

115

Restores the stack priority of a member switch from 115 to the default value 100.

Deletion example

<?xml version='1.0' encoding='UTF-8'?>
<rpc message-id="27" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
  <edit-config>
    <target>
      <running/>
    </target>
    <config>
      <board:boards xmlns:board="urn:huawei:params:xml:ns:yang:huawei-board">
        <board:board>
          <board:name>0</board:name>
          <hw-stack:priority xmlns:hw-stack="urn:huawei:params:xml:ns:yang:huawei-stack" xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0" xc:operation="delete">115</hw-stack:priority>
        </board:board>
      </board:boards>
    </config>
  </edit-config>
</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="8">
  <ok/>
</rpc-reply>

Sample of failed response

<?xml version='1.0' encoding='UTF-8'?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="9">
  <rpc-error>
    <error-type>application</error-type>
    <error-tag>operation-failed</error-tag>
    <error-severity>error</error-severity>
    <error-message>parse rpc config error.</error-message>
  </rpc-error>
</rpc-reply>

Configuring a Stack MAC Address Switching Delay

This section describes how to configure a stack MAC address switching delay using the config method.

Table 2-99  Configuring a stack MAC address switching delay

Operation

XPATH

edit-config:config

huawei-stack:stack-config/delaytime

Data requirement 1

Table 2-100  Configuring a stack MAC address switching delay

Item

Data

Description

Stack MAC address switching delay

15

Changes the stack MAC address switching delay from the default value 10 minutes to 15 minutes.

Request example

<?xml version='1.0' encoding='UTF-8'?>
<rpc message-id="8" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
  <edit-config>
    <target>
      <running/>
    </target>
    <config>
      <hw-stack:stack-config xmlns:hw-stack="urn:huawei:params:xml:ns:yang:huawei-stack">
        <hw-stack:delaytime>15</hw-stack:delaytime>
      </hw-stack:stack-config>
    </config>
  </edit-config>
</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="8">
  <ok/>
</rpc-reply>

Sample of failed response

<?xml version='1.0' encoding='UTF-8'?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="9">
  <rpc-error>
    <error-type>application</error-type>
    <error-tag>operation-failed</error-tag>
    <error-severity>error</error-severity>
    <error-message>parse rpc config error.</error-message>
  </rpc-error>
</rpc-reply>

Data requirement 2

Table 2-101  Changing the stack MAC address switching delay

Item

Data

Description

Stack MAC address switching delay

20

Changes the stack MAC address switching delay from 15 minutes to 20 minutes.

Replacement example

<?xml version='1.0' encoding='UTF-8'?>
<rpc message-id="9" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
  <edit-config>
    <target>
      <running/>
    </target>
    <config>
      <hw-stack:stack-config xmlns:hw-stack="urn:huawei:params:xml:ns:yang:huawei-stack">
        <hw-stack:delaytime>20</hw-stack:delaytime>
      </hw-stack:stack-config>
    </config>
  </edit-config>
</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="8">
  <ok/>
</rpc-reply>

Sample of failed response

<?xml version='1.0' encoding='UTF-8'?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="9">
  <rpc-error>
    <error-type>application</error-type>
    <error-tag>operation-failed</error-tag>
    <error-severity>error</error-severity>
    <error-message>parse rpc config error.</error-message>
  </rpc-error>
</rpc-reply>

Data requirement 3

Table 2-102  Deleting the default stack MAC address switching delay

Item

Data

Description

Stack MAC address switching delay

20

Restores the stack MAC address switching delay from 20 minutes to the default value 10 minutes.

Deletion example

<?xml version='1.0' encoding='UTF-8'?>
<rpc message-id="13" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
  <edit-config>
    <target>
      <running/>
    </target>
    <config>
      <hw-stack:stack-config xmlns:hw-stack="urn:huawei:params:xml:ns:yang:huawei-stack">
        <hw-stack:delaytime xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0" xc:operation="delete">20</hw-stack:delaytime>
      </hw-stack:stack-config>
    </config>
  </edit-config>
</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="8">
  <ok/>
</rpc-reply>

Sample of failed response

<?xml version='1.0' encoding='UTF-8'?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="9">
  <rpc-error>
    <error-type>application</error-type>
    <error-tag>operation-failed</error-tag>
    <error-severity>error</error-severity>
    <error-message>parse rpc config error.</error-message>
  </rpc-error>
</rpc-reply>

Configuring a Stack ID for a Stack Member Switch

This section describes how to configure a stack ID for a stack member switch using the rpc method.

Table 2-103  Configuring a stack ID for a member switch

Operation

XPATH

rpc

huawei-stack:new-stackid

Data requirement

Table 2-104  Configuring a stack ID for a member switch

Item

Data

Description

Old stack ID of a member switch

0

Changes the stack ID of a member switch from 0 to 5.

New stack ID of a member switch

5

Request example

<?xml version="1.0" encoding="UTF-8"?>
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
  <hw-stack:new-stackid xmlns:hw-stack="urn:huawei:params:xml:ns:yang:huawei-stack">
    <hw-stack:old-stackid>0</hw-stack:old-stackid>
    <hw-stack:stackid>5</hw-stack:stackid>
  </hw-stack:new-stackid>
</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="8">
  <ok/>
</rpc-reply>

Sample of failed response

<?xml version='1.0' encoding='UTF-8'?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="9">
  <rpc-error>
    <error-type>application</error-type>
    <error-tag>operation-failed</error-tag>
    <error-severity>error</error-severity>
    <error-message>parse rpc config error.</error-message>
  </rpc-error>
</rpc-reply>

Configuring the Duration in Which Interface Indicators Show Stack IDs of Stack Member Switches

This section describes how to configure the duration in which interface indicators show stack IDs of stack member switches using the rpc method.

Table 2-105  Configuring the duration in which interface indicators show stack IDs of member switches

Operation

XPATH

rpc

huawei-stack:led-enable/duration

Data requirement

Table 2-106  Configuring the duration in which interface indicators show stack IDs of member switches

Item

Data

Description

Duration in which interface indicators show stack IDs of member switches.

50

Indicates that the configured duration in which interface indicators show stack IDs of member switches is 50s.

Request example

<?xml version="1.0" encoding="UTF-8"?>
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
  <hw-stack:led-enable xmlns:hw-stack="urn:huawei:params:xml:ns:yang:huawei-stack">
    <hw-stack:duration>50</hw-stack:duration>
  </hw-stack:led-enable>
</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="8">
  <ok/>
</rpc-reply>

Sample of failed response

<?xml version='1.0' encoding='UTF-8'?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="9">
  <rpc-error>
    <error-type>application</error-type>
    <error-tag>operation-failed</error-tag>
    <error-severity>error</error-severity>
    <error-message>parse rpc error.</error-message>
  </rpc-error>
</rpc-reply>

Saving the Configuration That Is Automatically Generated for Dedicated Cable Stacking to the Flash Memory

This section describes how to save the configuration that is automatically generated for dedicated cable stacking to the flash memory using the rpc method.

Table 2-107  Saving the configuration that is automatically generated for dedicated cable stacking to the flash memory

Operation

XPATH

rpc

huawei-stack:stack-save

Data requirement

Table 2-108  Saving the configuration that is automatically generated for dedicated cable stacking to the flash memory

Item

Data

Description

Saving the configuration that is automatically generated for dedicated cable stacking to the flash memory

NA

NA

Request example

<?xml version="1.0" encoding="UTF-8"?>
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="9316bab0-3c75-11e7-ab68-08002700f003">
  <hw-stack:stack-save xmlns:hw-stack="urn:huawei:params:xml:ns:yang:huawei-stack"/>
</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="8">
  <ok/>
</rpc-reply>

Sample of failed response

<?xml version='1.0' encoding='UTF-8'?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="9">
  <rpc-error>
    <error-type>application</error-type>
    <error-tag>operation-failed</error-tag>
    <error-severity>error</error-severity>
    <error-message>parse rpc error.</error-message>
  </rpc-error>
</rpc-reply>

Querying the Role of a Stack Member Switch

This section describes how to query the role of a stack member switch using the get method.

Table 2-109  Querying the role of a member switch

Operation

XPATH

get

huawei-board/boards-state/board/hw-stack:role

Request example

<?xml version='1.0' encoding='UTF-8'?>
<rpc message-id="1" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
 <get>
  <filter type="subtree">
   <board:boards-state xmlns:board="urn:huawei:params:xml:ns:yang:huawei-board">
    <board:board>
     <board:name/>
     <hw-stack:role xmlns:hw-stack="urn:huawei:params:xml:ns:yang:huawei-stack"/>
    </board:board>
   </board:boards-state>
  </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="1">
 <data>
  <boards-state xmlns="urn:huawei:params:xml:ns:yang:huawei-board">
   <board>
    <name>1</name>
    <role xmlns="urn:huawei:params:xml:ns:yang:huawei-stack">standby</role>
   </board>
   <board>
    <name>3</name>
    <role xmlns="urn:huawei:params:xml:ns:yang:huawei-stack">master</role>
   </board>
  </boards-state>
 </data>
</rpc-reply>

Querying the Stacking Enablement Status of a Switch

This section describes how to query the stacking enablement status of a switch using the get method.

Table 2-110  Querying the stacking enablement status of a switch

Operation

XPATH

get

huawei-stack/stack-state:enable

Request example

<?xml version='1.0' encoding='UTF-8'?>
<rpc message-id="4" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
 <get>
  <filter type="subtree">
   <hw-stack:stack-state xmlns:hw-stack="urn:huawei:params:xml:ns:yang:huawei-stack">
    <hw-stack:enable/>
   </hw-stack:stack-state>
  </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="4">
 <data>
  <stack-state xmlns="urn:huawei:params:xml:ns:yang:huawei-stack">
   <enable>true</enable>
  </stack-state>
 </data>
</rpc-reply>

Querying the Stack Port Configuration

This section describes how to query the stack port configuration using the get method.

Table 2-111  Querying the stack port configuration

Operation

XPATH

get

huawei-board:boards-state/board/huawei-stack:stacking-ports

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">
   <board:boards-state xmlns:board="urn:huawei:params:xml:ns:yang:huawei-board">
    <board:board>
     <board:name/>
     <hw-stack:stacking-ports xmlns:hw-stack="urn:huawei:params:xml:ns:yang:huawei-stack"/>
    </board:board>
   </board:boards-state>
  </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="2">
 <data>
  <boards-state xmlns="urn:huawei:params:xml:ns:yang:huawei-board">
   <board>
    <name>1</name>
    <stacking-ports xmlns="urn:huawei:params:xml:ns:yang:huawei-stack">
     <port-number>1</port-number>
     <ports>
      <port>1/0/1</port>
      <peer-port>3/0/2</peer-port>
     </ports>
     <peer-stacking-port>2</peer-stacking-port>
     <peer-board-name>3</peer-board-name>
    </stacking-ports>
    <stacking-ports xmlns="urn:huawei:params:xml:ns:yang:huawei-stack">
     <port-number>2</port-number>
     <ports>
      <port>1/0/2</port>
      <peer-port>3/0/1</peer-port>
     </ports>
     <peer-stacking-port>1</peer-stacking-port>
     <peer-board-name>3</peer-board-name>
    </stacking-ports>
   </board>
   <board>
    <name>3</name>
    <stacking-ports xmlns="urn:huawei:params:xml:ns:yang:huawei-stack">
     <port-number>1</port-number>
     <ports>
      <port>3/0/1</port>
      <peer-port>1/0/2</peer-port>
     </ports>
     <peer-stacking-port>2</peer-stacking-port>
     <peer-board-name>1</peer-board-name>
    </stacking-ports>
    <stacking-ports xmlns="urn:huawei:params:xml:ns:yang:huawei-stack">
     <port-number>2</port-number>
     <ports>
      <port>3/0/2</port>
      <peer-port>1/0/1</peer-port>
     </ports>
     <peer-stacking-port>1</peer-stacking-port>
     <peer-board-name>1</peer-board-name>
    </stacking-ports>
   </board>
  </boards-state>
 </data>
</rpc-reply>
Translation
Download
Updated: 2019-09-23

Document ID: EDOC1000178028

Views: 4893

Downloads: 0

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next