Attributes

Table 43: Attributes for netdev_interface

Attribute name

Description

Attribute type

Value type and restrictions

ifindex

Specifies an interface by its index.

Index

Unsigned integer.

ensure

Configures the attributes of the interface.

N/A

Symbol:

  • undo_shutdown

  • present.

description

Configures the description for the interface.

N/A

String, case sensitive.

Length: 1 to 255 characters.

admin

Specifies the management state for the interface.

N/A

Symbol:

  • up—Brings up the interface.

  • down—Shuts down the interface.

speed

Specifies the interface rate.

N/A

Symbol:

  • auto—Autonegotiation.

  • 10m—10 Mbps.

  • 100m—100 Mbps.

  • 155m—155 Mbps.

  • 622m—622 Mbps.

  • 1g—1 Gbps.

  • 2g—2 Gbps.

  • 2.5g—2.5 Gbps.

  • 4g—4 Gbps.

  • 8g—8 Gbps.

  • 10g—10 Gbps.

  • 16g—16 Gbps.

  • 20g—20 Gbps.

  • 40g—40 Gbps.

  • 100g—100 Gbps.

duplex

Sets the duplex mode.

N/A

Symbol:

  • full—Full-duplex mode.

  • half—Half-duplex mode.

  • auto—Autonegotiation.

This attribute applies only to Ethernet interfaces.

linktype

Sets the link type for the interface.

N/A

Symbol:

  • access—Sets the link type of the interface to Access.

  • trunk—Sets the link type of the interface to Trunk.

  • hybrid—Sets the link type of the interface to Hybrid.

This attribute applies only to Layer 2 Ethernet interfaces.

portlayer

Sets the operation mode for the interface.

N/A

Symbol:

  • bridge—Layer 2 mode.

  • route—Layer 3 mode.

mtu

Sets the MTU permitted by the interface.

N/A

Unsigned integer in bytes. The value range depends on the interface type.

This attribute applies only to Layer 3 Ethernet interface.