< Home

Data Model

The configuration model files matching interface management are ietf-interfaces.yang, huawei-traffic-security.yang, huawei-ethernet.yang, huawei-interface.yang and huawei-interfaces.yang.

Table 1 Port management

Object

Description

Value Range

Remarks

/ietf-interfaces:interfaces/interface/huawei-traffic:traffic-security/isolate

Indicates that port isolation is enabled.

The value is of the Boolean type:
  • true: Port isolation is enabled.

  • false: Port isolation is disabled.

N/A

/ietf-interfaces:interfaces/interface/huawei-traffic-security:security/binding-config/binding-check-enable

Indicates that IPSG is enabled.

Indicates that Dynamic ARP inspection (DAI) is enabled.

The value is as follows:
  • bit ipv4-check { position 0; }
  • bit ipv6-check { position 1; }
  • bit arp-check { position 2; }

When IPv4 IPSG is enabled, configure ipv4-check.

When IPv6 IPSG is enabled, configure ipv6-check.

When DAI is enabled, configure only arp-check.

/ietf-interfaces:interfaces/interface/hw-ethernet:physical-config/speed

Indicates the interface rate.

The value is of the enumerated type:
  • auto: default interface rate

  • 10Mbps

  • 100Mbps

  • 1Gbps

  • 2.5Gbps

  • 5Gbps

  • 10Gbps

  • 25Gbps

  • 40Gbps

  • 50Gbps

  • 100Gbps

N/A

/ietf-interfaces:interfaces/interface/hw-ethernet:physical-config/duplex

Indicates the duplex mode.

The value is of the enumerated type:
  • auto: default duplex mode

  • half: half-duplex mode

  • full: full-duplex mode

On the S6720-HI, S5732-H, S6730-H, S6730S-H, S6730-S, S6730S-S, S6720-EI, and S6720S-EI, only the management interface MEth0/0/1 supports the duplex mode configuration.

/ietf-interfaces:interfaces-state/interface/huawei-interfaces:common/description

Indicates the interface description.

The value is a string of 1 to 242 case-sensitive characters.

N/A

/ietf-interfaces:interfaces-state/interface/name

Indicates the interface name.

The value is a string of 1 to 64 characters. It consists of the interface type and interface number.

The interface type varies according to the device models.

/ietf-interfaces:interfaces-state/interface/type

Indicates the interface type.

The value is of the enumerated type:
  • ethernetCsmacd: physical interface, Eth-Trunk interface
  • l2vlan: sub-interface
  • propVirtual: Vlanif or Vbdif interface
  • softwareLoopback: LoopBack interface
  • tunnel: Tunnel interface
  • other: NULL0, Nve, MTunnel, or Virtual-Template interface

The value of this parameter must contain iana-if-type.

/ietf-interfaces:interfaces-state/interface/admin-status

Indicates the administrative status of an interface.

The value is of the enumerated type:
  • up
  • down

N/A

/ietf-interfaces:interfaces-state/interface/oper-status

Indicates the interface running status.

The value is of the enumerated type:
  • up
  • down

N/A

/ietf-interfaces:interfaces-state/interface/last-change

Indicates the time of the latest status change.

For details, see the definition in RFC 3339.

N/A

/ietf-interfaces:interfaces-state/interface/if-index

Indicates the interface index.

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

N/A

/ietf-interfaces:interfaces-state/interface/phys-address

Indicates the physical address of an interface.

The format is H:H:H:H:H:H, where H is a 2-digit hexadecimal number.

N/A

/ietf-interfaces:interfaces-state/interface/speed

Indicates the interface rate.

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

NA

/ietf-interfaces:interfaces-state/interface/statistics

Indicates port traffic statistics.

-

NA

/ietf-interfaces:interfaces-state/interface/huawei-interfaces:common/description

Indicates the interface description.

The value is a string of 1 to 242 case-sensitive characters.

NA

/ietf-interfaces:interfaces-state/interface/hw-ethernet:physical-state/speed

Indicates the interface rate.

The value is of the enumerated type:
  • 10 Mbit/s

  • 100 Mbit/s

  • 1 Gbit/s

  • 2.5 Gbit/s

  • 5 Gbit/s

  • 10 Gbit/s

  • 25 Gbit/s

  • 40 Gbit/s

  • 50 Gbit/s

  • 100 Gbit/s

NA

/ietf-interfaces:interfaces-state/interface/hw-ethernet:physical-state/duplex

Indicates the duplex mode.

The value is of the enumerated type:
  • half
  • full

NA

/ietf-interfaces:interfaces-state/interface/statistics/in-octets

Indicates the number of incoming packets on an interface.

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

N/A

/ietf-interfaces:interfaces-state/interface/statistics/in-unicast-pkts

Indicates the number of incoming unicast packets on an interface.

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

N/A

/ietf-interfaces:interfaces-state/interface/statistics/in-broadcast-pkts

Indicates the number of incoming broadcast packets on an interface.

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

N/A

/ietf-interfaces:interfaces-state/interface/statistics/in-multicast-pkts

Indicates the number of incoming multicast packets on an interface.

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

N/A

/ietf-interfaces:interfaces-state/interface/statistics/in-discards

Indicates the number of discarded incoming packets on an interface.

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

N/A

/ietf-interfaces:interfaces-state/interface/statistics/in-errors

Indicates the number of incoming error packets on an interface.

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

N/A

/ietf-interfaces:interfaces-state/interface/statistics/out-octets

Indicates the number of outgoing packets on an interface.

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

N/A

/ietf-interfaces:interfaces-state/interface/statistics/out-unicast-pkts

Indicates the number of outgoing unicast packets on an interface.

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

N/A

/ietf-interfaces:interfaces-state/interface/statistics/out-broadcast-pkts

Indicates the number of outgoing broadcast packets on an interface.

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

N/A

/ietf-interfaces:interfaces-state/interface/statistics/out-multicast-pkts

Indicates the number of outgoing multicast packets on an interface.

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

N/A

/ietf-interfaces:interfaces-state/interface/statistics/out-discards

Indicates the number of discarded outgoing packets on an interface.

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

N/A

/ietf-interfaces:interfaces-state/interface/statistics/out-errors

Indicates the number of outgoing error packets on an interface.

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

N/A

/ietf-interfaces:interfaces/interface/name

Creates an interface or displays the interface view.

The value is a string of 1 to 64 characters. It consists of the interface type and interface number.

N/A

/ietf-interfaces:interfaces-state/interface/huawei-interface:common/description

Indicates the interface description.

The value is a string of 1 to 242 case-sensitive characters.

N/A

/ietf-interfaces:interfaces/interface/type

Indicates the interface type.

The value is of the enumerated type:
  • ethernetCsmacd: physical interface, Eth-Trunk interface
  • l2vlan: sub-interface
  • propVirtual: Vlanif or Vbdif interface
  • softwareLoopback: LoopBack interface
  • tunnel: Tunnel interface
  • other: NULL0, Nve, MTunnel, or Virtual-Template interface

The value of this parameter must contain iana-if-type.

/ietf-interfaces:interfaces/interface/enabled

Indicates that the interface is enabled.

The value is of the Boolean type:
  • true: The interface is enabled.

  • false: The interface is disabled.

You cannot configure an Eth-Trunk interface that is bound to a cascade port.

/ietf-interfaces:interfaces/interface/link-up-down-trap-enable

Indicates whether the SNMP trap function is enabled.

The value is of the Boolean type:
  • enabled: The function of sending a trap when the interface protocol status changes is enabled.

  • disabled: The function of sending a trap when the interface protocol status changes is disabled.

N/A

/ietf-interfaces:interfaces-state/interface/statistics/huawei-ethernet:ethernet-statistics/in-bandwidth

Indicates the inbound bandwidth usage.

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

Only statistics on the bandwidth usage of a physical interface can be collected.

/ietf-interfaces:interfaces-state/interface/statistics/huawei-ethernet:ethernet-statistics/out-bandwidth

Indicates the outbound bandwidth usage.

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

Only statistics on the bandwidth usage of a physical interface can be collected.

/ietf-interfaces:interfaces-state/interface/hw-eth-trunk:eth-trunk/trunk-name

Indicates the name of the Eth-Trunk to which the interface is added.

The value is a string of 1 to 32 characters.

NA

/huawei-ethernet:virtual-cable-test/input/ifname

Configures virtual cable test (VCT) on the interface.

The value is a string of 1 to 64 characters. It consists of the interface type and interface number.

N/A

/huawei-ethernet:port-loopbacktest-internal/input/test-ifname

Configures internal loopback detection on the interface.

The value is a string of 1 to 64 characters. It consists of the interface type and interface number.

N/A

/huawei-interfaces/interface-status-change/name

Indicates the interface name.

The value is a string of 1 to 64 characters. It consists of the interface type and interface number.

The interface type varies according to the device models.

/huawei-interfaces/interface-status-change/admin-status

Indicates the administrative status of an interface.

The value is of the enumerated type:
  • up
  • down

When the port status changes, the device reports the change to the controller.

/huawei-interfaces/interface-status-change/oper-status

Indicates the interface running status.

The value is of the enumerated type:
  • up
  • down

When the port status changes, the device reports the change to the controller.

/ietf-interfaces:interfaces/interface/ietf-ip:ipv4/huawei-ip:unnumbered-interface

Indicates the IP address of another interface that is borrowed by the local interface.

Only tunnel interfaces can borrow IP addresses of loopback interfaces. For example, Tunnel1 borrows the IP address of LoopBack0.

N/A

/dev:device/config-group-speed/slot/slot-index

Specifies a slot ID.

The value must be set according to the device configuration.

This object is supported only on the following switch models:

S5732-H24UM2CC and S5732-H48UM2CC

/dev:device/config-group-speed/slot/group/group-index

Specifies the number of a MultiGE interface group.

The value is an integer and must be set according to the device configuration.

Every 12 MultiGE interfaces form a MultiGE interface group. The number of MultiGE interface groups determines the value range. For example, if a device has 24 MultiGE interfaces, the value is 0 or 1.

This object is supported only on the following switch models:

S5732-H24UM2CC and S5732-H48UM2CC

/dev:device/config-group-speed/slot/group/config-speed

Specifies the maximum rate of a MultiGE interface.

The value is of the enumerated type:

  • 1000

  • 2500

  • 5000

  • 10000

The unit is bit/s.

NOTE:
  • The value range of this parameter depends on the loaded license control item.
  • The specified MultiGE interface rate cannot be lower than the default MultiGE interface rate.

This object is supported only on the following switch models:

S5732-H24UM2CC and S5732-H48UM2CC

Table 2 Rate information returned or reported by the switch for interfaces in MultiGE interface groups

Object

Description

/dev:device-state/group-speed-state/slot/slot-index

Slot ID.

/dev:device-state/group-speed-state/slot/supported

The value is of the Boolean type:
  • true: Interfaces in a specific slot support rate adjustment.

  • false: Interfaces in a specific slot do not support rate adjustment.

/dev:device-state/group-speed-state/slot/group/group-index

Number of a MultiGE interface group.

/dev:device-state/group-speed-state/slot/group/base-speed

Default maximum rates of interfaces in MultiGE interface groups The unit is bit/s.

/dev:device-state/group-speed-state/slot/group/config-speed

Maximum rates configured using the /dev:device/config-group-speed/slot/group/config-speed object for interfaces in MultiGE interface groups. The unit is bit/s.

/dev:device-state/group-speed-state/slot/group/current-speed

Maximum rates of interfaces in MultiGE interface groups during the current device startup The unit is bit/s.

/dev:device-state/group-speed-state/slot/group/next-speed

Maximum rates of interfaces in MultiGE interface groups for the next device startup The unit is bit/s.

Only the following switch models support the objects listed in Table 2:

S5732-H24UM2CC and S5732-H48UM2CC

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