< Home

Data Model

The configuration model files matching stack management are huawei-stack.yang and huawei-device.yang.

Table 1 Stack management configuration (huawei-stack.yang)

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-stack/set-stack-configuration/stackid

Indicates the old stack ID of a member switch.

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

NA

/huawei-stack/set-stack-configuration/next-stackid

Indicates the new stack ID of a member switch.

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

NA

/huawei-stack/set-stack-configuration/next-priority

Indicates the stack priority of the new stack member switch.

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

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-stack:stack-state/stack-ports/port-name

Indicates the stack port name.

The value is a string of 1 to 128 characters.

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 0, 1, or 2.

0 indicates that a service port has become a stack member port but has not been bound to a logical stack port.

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.

/ietf-interfaces:interfaces/interface/huawei-stack:mad-config/detect-mode

Configures the MAD mode.

The value is of the enumerated type:
  • direct: MAD in direct mode
  • relay: MAD in relay mode

MAD in relay mode is supported only on Eth-Trunk interfaces. MAD in direct mode is supported only on physical interfaces but not on Eth-Trunk interfaces.

/ietf-interfaces:interfaces/interface/huawei-stack:mad-config/relay-proxy-enable

Configures the relay function on a specified interface of the relay agent.

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

NA

/hw-stack:mad-config/hw-stack:domain-id

Indicates the stack MAD domain ID.

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

NA

/stackport-change/change-type

Indicates the type of the operation performed on dedicated stack cables:

The value is of the enumerated type:
  • add: Dedicated stack cables are installed.
  • delete: Dedicated stack cables are removed.

Only the switches that support dedicated stack cable stacking support this object.

Table 2 Stack management configuration (huawei-device.yang)

Object

Description

Value

Remarks

/device-state/user-define-info/stack-status

Indicates whether the switch is a stacked switch.

The value is of the enumerated type:
  • single: standalone mode

  • stack: stack mode

If the slot ID of a switch is 0 and the switch has no stack port configured when using service port stacking, the switch works in standalone mode. Otherwise, the switch works in stack mode.

NA

/device-state/user-define-info/system-mac-address

Indicates the stack MAC address.

The value is a character string in the format xx:xx:xx:xx:xx:xx.

This field is empty when the stacking function is disabled. In a single-switch stack, this field displays the device system MAC address.

NA

/sysmac-switch-event/new-sysmac

Indicates the new stack MAC address used after the existing one is changed.

The value is a character string in the format xx:xx:xx:xx:xx:xx.

NA

/board-register-status-notify/register-status-list/slot-index

Indicates the slot ID of the registered stack member.

The value is a character string that ranges from 0 to 8.

NA

/board-register-status-notify/register-status-list/register-success

Indicates the stack member registration result.

The value is of the Boolean type:
  • true: The switch is registered successfully.
  • false: The switch fails to be registered.

NA

/board-register-status-notify/register-status-list/register-fail-reason

Indicates the error code used when a stack member fails to be registered.

When the switch is registered successfully, this object does not exist.
  • 3: The switch's ESN does not exist on the iMaster NCE-Campus.
  • 7: The switch's ESN and type do not match.
  • 13: The switch's standalone mode or stack status is inconsistent with that on the iMaster NCE-Campus.
  • 14: The switch's slot ID is inconsistent with that on the iMaster NCE-Campus.

NA

/reset-board/slot-index

Restarts the stack member with a specified slot ID in the stack.

The value is a character string that ranges from 0 to 8.

NA

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >