IPI-IF-ETHERNET
Configure duplex mode
Use this attribute to set the duplex mode for the interface. Auto-negotiation if enabled, is turned off when duplex mode is set for the interface. When auto-negotiation is enabled, the interface should negotiate the duplex mode directly (typically full-duplex).
Attribute Name: duplex-mode
Attribute Type: enum (half|full)
Netconf edit-config payload
<interfaces xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-interface">
<interface>
<name>IFNAME</name>
<config>
<name>IFNAME</name>
</config>
<ethernet xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-if-ethernet">
<config>
<duplex-mode>half</duplex-mode> <!-- operation="delete"-->
</config>
</ethernet>
</interface>
</interfaces>
Command Syntax
duplex (half|full)
Configure mac address
Use this attribute to set the mac address for an interface. If not specified, the corresponding operational state leaf is expected to show the system-assigned MAC address.
Attribute Name: mac-address
Attribute Type: string
Attribute Range: 1-20
Netconf edit-config payload
<interfaces xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-interface">
<interface>
<name>IFNAME</name>
<config>
<name>IFNAME</name>
</config>
<ethernet xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-if-ethernet">
<config>
<mac-address>MAC</mac-address> <!-- operation="delete"-->
</config>
</ethernet>
</interface>
</interfaces>
Command Syntax
mac-address (MAC|use-physical)
Configure secondary mac address
Use this attribute to set the secondary mac address for an interface to terminate L3 packets.
Attribute Name: secondary-mac-address
Attribute Type: empty
Netconf edit-config payload
<interfaces xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-interface">
<interface>
<name>IFNAME</name>
<config>
<name>IFNAME</name>
</config>
<ethernet xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-if-ethernet">
<config>
</secondary-mac-address><!-- operation="delete"-->
</config>
</ethernet>
</interface>
</interfaces>
Command Syntax
mac-address secondary peer-mlag
Configure port speed
This attribute is used to set the link speed for the interface. To enable auto-negotiation for the interface, set this attribute to value auto. When auto-negotiation is enabled, it is expected that the interface will select the highest speed available based on negotiation. When auto-negotiation is not enabled, sets the link speed to a fixed value -- supported values are defined by IF_INTERFACE_SPEED_T enum.
Attribute Name: port-speed
Attribute Type: enum (10m|100m|1g|2.5g|10g|20g|25g|40g|50g|100g|auto)
Netconf edit-config payload
<interfaces xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-interface">
<interface>
<name>IFNAME</name>
<config>
<name>IFNAME</name>
</config>
<ethernet xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-if-ethernet">
<config>
<port-speed>10m</port-speed> <!-- operation="delete"-->
</config>
</ethernet>
</interface>
</interfaces>
Command Syntax
speed (10m|100m|1g|2.5g|10g|20g|25g|40g|50g|100g|auto)
Configure enable rcv
The textual name of the interface. The value of this object should be the name of the interface as assigned by the local device and should be suitable for use in commands entered at the device’s ‘console’. This might be a text name, such as ‘le0’ or a simple port number, such as ‘1’, depending on the interface naming syntax of the device. If several entries in the ifTable together represent a single interface as named by the device, then each will have the same value of name. Note that for an agent which responds to SNMP queries concerning an interface on some other (proxied) device, then the value of name for such an interface is the proxied device’s local name for it. If there is no local name, or this object is otherwise not applicable, then this object contains a zero-length string.
Attribute Name: name
Attribute Type: string
Attribute Name: enable-rcv
Attribute Type: enum (off|on)
Attribute Name: enable-snd
Attribute Type: enum (off|on)
Netconf edit-config payload
<interfaces xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-interface">
<interface>
<name>IFNAME</name>
<config>
<name>IFNAME</name>
</config>
<ethernet>
<flow-control>
<config>
<enable-rcv>off</enable-rcv>
<enable-snd>off</enable-snd>
</config>
</flow-control>
</ethernet>
</interface>
</interfaces>
Command Syntax
flowcontrol both
Configure enable rcv
This attribute is used to show flow control on receive
This command is supported when following feature are enabled L2 feature
Attribute Name: enable-rcv
Attribute Type: enum (off|on)
Default Value: off
Netconf edit-config payload
<interfaces xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-interface">
<interface>
<name>IFNAME</name>
<config>
<name>IFNAME</name>
</config>
<ethernet xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-if-ethernet">
<flow-control>
<config>
<enable-rcv>off</enable-rcv> <!-- operation="delete"-->
</config>
</flow-control>
</ethernet>
</interface>
</interfaces>
Command Syntax
flowcontrol receive (off|on)
Configure enable snd
This attribute is used to show flow control on send
This command is supported when following feature are enabled L2 feature
Attribute Name: enable-snd
Attribute Type: enum (off|on)
Default Value: off
Netconf edit-config payload
<interfaces xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-interface">
<interface>
<name>IFNAME</name>
<config>
<name>IFNAME</name>
</config>
<ethernet xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-if-ethernet">
<flow-control>
<config>
<enable-snd>off</enable-snd> <!-- operation="delete"-->
</config>
</flow-control>
</ethernet>
</interface>
</interfaces>
Command Syntax
flowcontrol send (off|on)
Last modified date: 08/24/2023