IPI-INTERFACE
Configure name
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 Range: 1-33
Attribute Name: enable-switchport
Attribute Type: uint8
Netconf edit-config payload
<interfaces xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-interface">
<interface> <!-- operation="delete"-->
<name>IFNAME</name>
<config>
<name>IFNAME</name>
</enable-switchport>
</config>
</interface>
</interfaces>
Command Syntax
interface IFNAME (switchport|)
Configure enable switchport
This attribute is used to set the mode of the Hybrid Switch Router feature to switched only.All interfaces are configured routed by default
Attribute Name: enable-switchport
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>
</enable-switchport><!-- operation="delete"-->
</interface>
</interfaces>
Command Syntax
switchport
Configure vrf name
This attribute is used to associates an interface with a VRF
Attribute Name: vrf-name
Attribute Type: string
Netconf edit-config payload
<interfaces xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-interface">
<interface>
<name>IFNAME</name>
<config>
<name>IFNAME</name>
</config>
<vrf-name>WORD</vrf-name> <!-- operation="delete"-->
</interface>
</interfaces>
Command Syntax
ip vrf forwarding WORD
Configure vr name
This attribute is used to associates an interface with a VR
Attribute Name: vr-name
Attribute Type: string
Netconf edit-config payload
<interfaces xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-interface">
<interface>
<name>IFNAME</name>
<config>
<name>IFNAME</name>
</config>
<vr-name>WORD</vr-name> <!-- operation="delete"-->
</interface>
</interfaces>
Command Syntax
virtual-router forwarding WORD
Configure mtu
This attribute is used to set mtu value to interface.The size of the largest packet which can be sent/received on the interface, specified in octets. For interfaces that are used for transmitting network datagrams, this is the size of the largest network datagram that can be sent on the interface.
Attribute Name: mtu
Attribute Type: uint32
Attribute Range: 64-65535
Netconf edit-config payload
<interfaces xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-interface">
<interface>
<name>IFNAME</name>
<config>
<name>IFNAME</name>
</config>
<mtu>64</mtu> <!-- operation="delete"-->
</interface>
</interfaces>
Command Syntax
mtu <64-65535>
Configure dot1ad ether type
This attribute is used to configure the ethertype value for the interface in the format 0xhhhh. Currently supported values are 0x8100 (default) or 0x88a8 or 0x9100 or 0x9200.
Attribute Name: dot1ad-ether-type
Attribute Type: string
Attribute Range: 6-6
Netconf edit-config payload
<interfaces xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-interface">
<interface>
<name>IFNAME</name>
<config>
<name>IFNAME</name>
</config>
<dot1ad-ether-type>ETHERTYPE</dot1ad-ether-type> <!-- operation="delete"-->
</interface>
</interfaces>
Command Syntax
dot1ad ethertype ETHERTYPE
Configure description
Use this attribute to set description for the interface
Attribute Name: description
Attribute Type: string
Attribute Range: 1-128
Netconf edit-config payload
<interfaces xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-interface">
<interface>
<name>IFNAME</name>
<config>
<name>IFNAME</name>
</config>
<description>1</description> <!-- operation="delete"-->
</interface>
</interfaces>
Command Syntax
description LINE
Configure shutdown
Use this attribute to enable the selected interface. This leaf contains the configured, desired state of the interface. The testing(3) state indicates that no operational packets can be passed. When a managed system initializes, all interfaces start with ifAdminStatus in the down(2) state. As a result of either explicit management action or per configuration information retained by the managed system, ifAdminStatus is then changed to either the up(1) or testing(3) states (or remains in the down(2) state).
Attribute Name: shutdown
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>
</shutdown><!-- operation="delete"-->
</interface>
</interfaces>
Command Syntax
shutdown
Configure if loopback
This attribute is used to enable port loopback
Attribute Name: if-loopback
Attribute Type: enum (tx|rx)
Attribute Name: if-loopback-level
Attribute Type: enum (mac|phy)
Netconf edit-config payload
<interfaces xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-interface">
<interface>
<name>IFNAME</name>
<config>
<name>IFNAME</name>
</config>
<interface-loopback>
<config>
<if-loopback-level>mac</if-loopback-level>
<if-loopback>tx</if-loopback>
</config>
</interface-loopback>
</interface>
</interfaces>
Command Syntax
loopback (tx|rx) (mac|phy)
clear interface (IFNAME|) counters
Attribute Name: name
Attribute Type: string
Netconf RPC payload
<clear-interface-counters xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-interface">
<name>IFNAME</name>
</clear-interface-counters>
Command Syntax
clear interface (IFNAME|) counters