Interface-Netconf
Interface
Section titled “Interface”Resources Summary
Section titled “Resources Summary”| YANG Path | get/get-config | edit-config | rpc |
|---|---|---|---|
| /clear-counters-interface | — | — | Y |
| /clear-dhcp-snooping-drop-pkts | — | — | Y |
| /clear-router-interface | — | — | Y |
| /clear-vlan-membership | — | — | Y |
| /config-lag-group | — | — | Y |
| /config-port-group | — | — | Y |
| /interfaces/{name} | Y | merge, delete | — |
| /interfaces/{name}/bandwidth-util-warn | Y | merge, replace, create, delete | — |
| /interfaces/{name}/ethernet-config | Y | merge | — |
| /interfaces/{name}/ipv4 | Y | merge, replace, create, delete | — |
| /interfaces/{name}/ipv4/address/{ip-prefix} | Y | replace, create, delete | — |
| /interfaces/{name}/ipv4/neighbor/{ip} | Y | merge, replace, create, delete | — |
| /interfaces/{name}/ipv6 | Y | merge, replace, create, delete | — |
| /interfaces/{name}/ipv6/address/{ip-prefix} | Y | replace, create, delete | — |
| /interfaces/{name}/ipv6/neighbor/{ip} | Y | merge, replace, create, delete | — |
| /interfaces/{name}/ipv6/router-advertisement | Y | merge, replace, create, delete | — |
| /interfaces/{name}/ipv6/router-advertisement/prefixes/{prefix} | Y | replace, create, delete | — |
| /interfaces/{name}/ipv6/router-advertisement/rdnsses/{rdnss} | Y | replace, create, delete | — |
| /interfaces/{name}/ipv6/router-advertisement/routes/{route} | Y | merge, replace, create, delete | — |
| /interfaces/{name}/l2-protocol-control/{protocol-type} | Y | merge, replace, create, delete | — |
| /interfaces/{name}/link-flapping | Y | merge, replace, create, delete | — |
| /interfaces/{name}/statistics | Y | — | — |
| /portchannels/{name} | Y | merge, replace, create, delete | — |
| /portchannels/{name}/members/{port} | Y | merge, replace, create, delete | — |
| /ports-global | Y | merge, replace, create, delete | — |
| /show-bandwidth-util-threshold-warn | — | — | Y |
| /show-counters-interface | — | — | Y |
| /show-interface-port | — | — | Y |
| /show-interface-summary | — | — | Y |
| /show-interface-urpf | — | — | Y |
| /show-ip-interface | — | — | Y |
| /show-ipv4-neighbor-summary | — | — | Y |
| /show-ipv6-interface | — | — | Y |
| /show-ipv6-neighbor-summary | — | — | Y |
| /show-link-aggregation-summary | — | — | Y |
| /show-sub-interface | — | — | Y |
Examples
Section titled “Examples”Interface module provides a way to configure and manage network interfaces on AsterNOS devices. It supports various types of interfaces, including:
- Ethernet, physical interfaces that connect to other network devices.
- PortChannel, logical interfaces that aggregate multiple physical interfaces into a single logical interface.
- Vlanif, virtual interfaces that are associated with a VLAN.
- Sub-Ethernet, sub-interfaces that are created on top of a physical Ethernet interface.
- Sub-PortChannel, sub-interfaces that are created on top of a PortChannel interface.
- Loopback, virtual interfaces that are used for testing and troubleshooting.
For each type of interface, it has specific configuration options and parameters.
Ethernet interface and Loopback0 can’t be deleted, other types of interfaces can be created and deleted.
Before creating PortChannel Interface , user should create PortChannel in asternos-portchannels module.
Before creating Sub-Ethernet or Sub-PortChannel Interface, user should make sure the parent interface exists.
Before creating Vlanif Interface, user should create VLAN in asternos-vlans module.
There are some config false nodes in the yang model, such as statistics, oper-status, etc.
These nodes are read-only and can’t be configured via netconf, so these nodes cannot be retrieved by get-config.
If you want to get these nodes, you can use get to retrieve all configuration and operational data.
Get All Existing Interfaces Configuration On Device
Section titled “Get All Existing Interfaces Configuration On Device”Request example to retrieve all interface configurations on the device via rpc get-config.
<filter type="subtree"> <top> <interfaces/> </top></filter>Response example
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:fe9f644f-777d-47be-93fe-04a3f4cc9730"> <data> <top> <interfaces xmlns="http://asterfusion.com/ns/yang/asternos-interfaces"> <interface> <name>Ethernet1</name> <admin-status>true</admin-status> <interface-mode>none</interface-mode> <mtu>9216</mtu> <ethernet-config xmlns="http://asterfusion.com/ns/yang/asternos-ports"> <auto-negotiate>true</auto-negotiate> <port-speed>SPEED_25G</port-speed> </ethernet-config> </interface> <interface> <name>Ethernet2</name> <admin-status>true</admin-status> <interface-mode>none</interface-mode> <mtu>9216</mtu> <ethernet-config xmlns="http://asterfusion.com/ns/yang/asternos-ports"> <auto-negotiate>true</auto-negotiate> <port-speed>SPEED_25G</port-speed> </ethernet-config> </interface> <interface> <name>Ethernet3</name> <admin-status>true</admin-status> <interface-mode>none</interface-mode> <mtu>9216</mtu> <ethernet-config xmlns="http://asterfusion.com/ns/yang/asternos-ports"> <auto-negotiate>true</auto-negotiate> <port-speed>SPEED_25G</port-speed> </ethernet-config> </interface> <interface> <name>Ethernet4</name> <admin-status>true</admin-status> <interface-mode>none</interface-mode> <mtu>9216</mtu> <ethernet-config xmlns="http://asterfusion.com/ns/yang/asternos-ports"> <auto-negotiate>true</auto-negotiate> <port-speed>SPEED_25G</port-speed> </ethernet-config> </interface> <interface> <name>Ethernet5</name> <admin-status>true</admin-status> <interface-mode>none</interface-mode> <mtu>9216</mtu> <ethernet-config xmlns="http://asterfusion.com/ns/yang/asternos-ports"> <auto-negotiate>true</auto-negotiate> <port-speed>SPEED_25G</port-speed> </ethernet-config> </interface> <interface> <name>Ethernet6</name> <admin-status>true</admin-status> <interface-mode>none</interface-mode> <mtu>9216</mtu> <ethernet-config xmlns="http://asterfusion.com/ns/yang/asternos-ports"> <auto-negotiate>true</auto-negotiate> <port-speed>SPEED_25G</port-speed> </ethernet-config> </interface> <interface> <name>Ethernet7</name> <admin-status>true</admin-status> <interface-mode>none</interface-mode> <mtu>9216</mtu> <ethernet-config xmlns="http://asterfusion.com/ns/yang/asternos-ports"> <auto-negotiate>true</auto-negotiate> <port-speed>SPEED_25G</port-speed> </ethernet-config> </interface> <interface> <name>Ethernet8</name> <admin-status>true</admin-status> <interface-mode>none</interface-mode> <mtu>9216</mtu> <ethernet-config xmlns="http://asterfusion.com/ns/yang/asternos-ports"> <auto-negotiate>true</auto-negotiate> <port-speed>SPEED_25G</port-speed> </ethernet-config> </interface> <!-- more --> <interface> <name>Loopback0</name> <admin-status>true</admin-status> <interface-mode>routed</interface-mode> <ipv4 xmlns="http://asterfusion.com/ns/yang/asternos-ip"> <address> <ip-prefix>10.1.0.1/32</ip-prefix> </address> </ipv4> <ipv6 xmlns="http://asterfusion.com/ns/yang/asternos-ip"/> </interface> </interfaces> </top> </data></rpc-reply>Get Supported Breakout Modes
Section titled “Get Supported Breakout Modes”Request example to retrieve current and supported breakout modes for a port via rpc get.
<filter type="subtree"> <top> <breakout-modes> <breakout-mode> <name>Ethernet53</name> </breakout-mode> </breakout-modes> </top></filter>Response example
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:c03a355c-70df-4ac3-b4c1-9d26f7b19286"> <data> <top> <breakout-modes xmlns="http://asterfusion.com/ns/yang/asternos-breakout"> <breakout-mode> <name>Ethernet53</name> <supported-breakout-modes>4x25G</supported-breakout-modes> <supported-breakout-modes>4x10G</supported-breakout-modes> </breakout-mode> </breakout-modes> </top> </data></rpc-reply>Set Breakout Mode
Section titled “Set Breakout Mode”Request example to set breakout mode to 4x25G via rpc edit-config.
<config><top> <breakout-modes> <breakout-mode operation="merge"> <name>Ethernet53</name> <breakout-mode>4x25G</breakout-mode> </breakout-mode> </breakout-modes></top></config>Response example
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:1f8cbaa9-ff66-48d1-b66d-68a8092500ed"> <ok/></rpc-reply>Cancel Breakout (Revert to Default)
Section titled “Cancel Breakout (Revert to Default)”Request example to cancel breakout and revert the port to its default mode via rpc edit-config.
<config><top> <breakout-modes> <breakout-mode operation="delete"> <name>Ethernet53</name> </breakout-mode> </breakout-modes></top></config>Response example
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:1f8cbaa9-ff66-48d1-b66d-68a8092500ed"> <ok/></rpc-reply>Get Single Interface configuration on Device
Section titled “Get Single Interface configuration on Device”Request example to retrieve a single interface configuration on the device via rpc get-config.
<filter type="subtree"> <top> <interfaces> <interface> <name>Ethernet22</name> </interface> </interfaces> </filter>Response example
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:c7110908-49d7-42b8-a42c-8cbdd30701bd"> <data> <top> <interfaces xmlns="http://asterfusion.com/ns/yang/asternos-interfaces"> <interface> <name>Ethernet22</name> <admin-status>true</admin-status> <interface-mode>none</interface-mode> <mtu>9216</mtu> <ethernet-config xmlns="http://asterfusion.com/ns/yang/asternos-ports"> <auto-negotiate>true</auto-negotiate> <port-speed>SPEED_25G</port-speed> </ethernet-config> </interface> </interfaces> </top> </data></rpc-reply>Get Configuration and Operational Data for Single Interface
Section titled “Get Configuration and Operational Data for Single Interface”Use get rather than get-config to retrieve both configuration and operational data.
Request example to retrieve both configuration and operational data for a single interface via rpc get.
<filter type="subtree"> <top> <interfaces> <interface> <name>Ethernet22</name> </interface> </interfaces> </top></filter>Response example
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:732b6696-ff9e-40dc-a1ef-39d24a51816a"> <data> <top> <interfaces xmlns="http://asterfusion.com/ns/yang/asternos-interfaces"> <interface> <name>Ethernet22</name> <admin-status>true</admin-status> <interface-mode>none</interface-mode> <oper-status>true</oper-status> <mtu>9216</mtu> <statistics> <in-octets>0</in-octets> <in-unicast-pkts>0</in-unicast-pkts> <in-broadcast-pkts>0</in-broadcast-pkts> <in-multicast-pkts>0</in-multicast-pkts> <in-discards>0</in-discards> <in-errors>0</in-errors> <in-ipv4-pkts>0</in-ipv4-pkts> <in-ipv4-octets>0</in-ipv4-octets> <in-ipv6-pkts>0</in-ipv6-pkts> <in-ipv6-octets>0</in-ipv6-octets> <out-octets>1880976</out-octets> <out-unicast-pkts>0</out-unicast-pkts> <out-broadcast-pkts>0</out-broadcast-pkts> <out-multicast-pkts>6769</out-multicast-pkts> <out-discards>0</out-discards> <out-errors>0</out-errors> <out-ipv4-octets>0</out-ipv4-octets> <out-ipv6-octets>536</out-ipv6-octets> </statistics> <ethernet-config xmlns="http://asterfusion.com/ns/yang/asternos-ports"> <auto-negotiate>true</auto-negotiate> <port-speed>SPEED_25G</port-speed> <lanes>21</lanes> <index>21</index> <alias>Y22</alias> </ethernet-config> <transceiver xmlns="http://asterfusion.com/ns/yang/asternos-transceiver"> <lpmode>false</lpmode> <presence>false</presence> <eeprom> <dom/> </eeprom> </transceiver> </interface> </interfaces> </top> </data></rpc-reply>Get Interface Statistics
Section titled “Get Interface Statistics”Request example to get interface counters via rpc show-counters-interface
<show-counters-interface> <name>Ethernet1</name> <all>true</all> <json>true</json></show-counters-interface>Response example
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:a64fa98e-2f0e-427f-8112-44d3d460c182"> <data xmlns="http://asterfusion.com/ns/yang/asternos-interfaces">{ "Ethernet1": { "RX_BPS": "0.00 B/s", "RX_DRP": "0", "RX_ERR": "0", "RX_OK": "0", "RX_OVR": "0", "RX_PPS": "0.00/s", "RX_UTIL": "0.00%", "STATE": "U", "TRIM": "N/A", "TX_BPS": "148.00 B/s", "TX_DRP": "0", "TX_ERR": "0", "TX_OK": "7,038", "TX_OVR": "0", "TX_PPS": "0.50/s", "TX_UTIL": "0.00%" }}</data></rpc-reply>Show Interface Counters All
Section titled “Show Interface Counters All”Request example to get all interface counters in table format via rpc show-counters-interface
<show-counters-interface> <all>true</all></show-counters-interface>Response example
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:0f6559af-da46-47b5-8779-9f29e409068f"> <data xmlns="http://asterfusion.com/ns/yang/asternos-interfaces"> IFACE STATE RX_OK RX_BPS RX_PPS RX_UTIL RX_ERR RX_DRP RX_OVR TX_OK TX_BPS TX_PPS TX_UTIL TX_ERR TX_DRP TX_OVR TRIM ---------- ------- ------- -------- -------- --------- -------- -------- -------- ------- ---------- -------- --------- -------- -------- -------- ------ Ethernet1 U 0 0.00 B/s 0.00/s 0.00% 0 0 0 8,108 148.00 B/s 0.50/s 0.00% 0 0 0 N/A Ethernet2 U 0 0.00 B/s 0.00/s 0.00% 0 0 0 8,108 148.00 B/s 0.50/s 0.00% 0 0 0 N/A Ethernet3 U 0 0.00 B/s 0.00/s 0.00% 0 0 0 8,108 148.00 B/s 0.50/s 0.00% 0 0 0 N/A Ethernet4 U 0 0.00 B/s 0.00/s 0.00% 0 0 0 8,108 148.00 B/s 0.50/s 0.00% 0 0 0 N/A Ethernet5 U 0 0.00 B/s 0.00/s 0.00% 0 0 0 8,108 148.00 B/s 0.50/s 0.00% 0 0 0 N/A Ethernet6 U 0 0.00 B/s 0.00/s 0.00% 0 0 0 8,108 148.00 B/s 0.50/s 0.00% 0 0 0 N/A Ethernet7 U 0 0.00 B/s 0.00/s 0.00% 0 0 0 8,108 148.00 B/s 0.50/s 0.00% 0 0 0 N/A Ethernet8 U 0 0.00 B/s 0.00/s 0.00% 0 0 0 8,108 148.00 B/s 0.50/s 0.00% 0 0 0 N/A Ethernet9 U 0 0.00 B/s 0.00/s 0.00% 0 0 0 8,108 148.00 B/s 0.50/s 0.00% 0 0 0 N/A Ethernet10 U 0 0.00 B/s 0.00/s 0.00% 0 0 0 8,108 149.00 B/s 0.50/s 0.00% 0 0 0 N/A Ethernet11 U 0 0.00 B/s 0.00/s 0.00% 0 0 0 8,108 149.00 B/s 0.50/s 0.00% 0 0 0 N/A Ethernet12 U 0 0.00 B/s 0.00/s 0.00% 0 0 0 8,108 149.00 B/s 0.50/s 0.00% 0 0 0 N/A Ethernet13 U 0 0.00 B/s 0.00/s 0.00% 0 0 0 8,108 149.00 B/s 0.50/s 0.00% 0 0 0 N/A Ethernet14 U 0 0.00 B/s 0.00/s 0.00% 0 0 0 8,108 149.00 B/s 0.50/s 0.00% 0 0 0 N/A Ethernet15 U 0 0.00 B/s 0.00/s 0.00% 0 0 0 8,108 149.00 B/s 0.50/s 0.00% 0 0 0 N/A Ethernet16 U 0 0.00 B/s 0.00/s 0.00% 0 0 0 8,108 149.00 B/s 0.50/s 0.00% 0 0 0 N/A Ethernet17 U 0 0.00 B/s 0.00/s 0.00% 0 0 0 8,108 149.00 B/s 0.50/s 0.00% 0 0 0 N/A Ethernet18 U 0 0.00 B/s 0.00/s 0.00% 0 0 0 8,108 149.00 B/s 0.50/s 0.00% 0 0 0 N/A Ethernet19 U 0 0.00 B/s 0.00/s 0.00% 0 0 0 8,108 149.00 B/s 0.50/s 0.00% 0 0 0 N/A Ethernet20 U 0 0.00 B/s 0.00/s 0.00% 0 0 0 8,108 149.00 B/s 0.50/s 0.00% 0 0 0 N/A Ethernet21 U 0 0.00 B/s 0.00/s 0.00% 0 0 0 8,108 149.00 B/s 0.50/s 0.00% 0 0 0 N/A Ethernet22 U 0 0.00 B/s 0.00/s 0.00% 0 0 0 8,108 149.00 B/s 0.50/s 0.00% 0 0 0 N/A Ethernet23 U 0 0.00 B/s 0.00/s 0.00% 0 0 0 8,108 149.00 B/s 0.50/s 0.00% 0 0 0 N/A Ethernet24 U 0 0.00 B/s 0.00/s 0.00% 0 0 0 8,108 149.00 B/s 0.50/s 0.00% 0 0 0 N/A Ethernet25 U 0 0.00 B/s 0.00/s 0.00% 0 0 0 8,108 149.00 B/s 0.50/s 0.00% 0 0 0 N/A Ethernet26 U 0 0.00 B/s 0.00/s 0.00% 0 0 0 8,108 149.00 B/s 0.50/s 0.00% 0 0 0 N/A Ethernet27 U 0 0.00 B/s 0.00/s 0.00% 0 0 0 8,108 149.00 B/s 0.50/s 0.00% 0 0 0 N/A Ethernet28 U 0 0.00 B/s 0.00/s 0.00% 0 0 0 8,108 149.00 B/s 0.50/s 0.00% 0 0 0 N/A Ethernet29 U 0 0.00 B/s 0.00/s 0.00% 0 0 0 8,108 149.00 B/s 0.50/s 0.00% 0 0 0 N/A Ethernet30 U 0 0.00 B/s 0.00/s 0.00% 0 0 0 8,108 149.00 B/s 0.50/s 0.00% 0 0 0 N/A Ethernet31 U 0 0.00 B/s 0.00/s 0.00% 0 0 0 8,108 149.00 B/s 0.50/s 0.00% 0 0 0 N/A Ethernet32 U 0 0.00 B/s 0.00/s 0.00% 0 0 0 8,108 149.00 B/s 0.50/s 0.00% 0 0 0 N/A Ethernet33 U 0 0.00 B/s 0.00/s 0.00% 0 0 0 8,108 149.00 B/s 0.50/s 0.00% 0 0 0 N/A Ethernet34 U 0 0.00 B/s 0.00/s 0.00% 0 0 0 8,108 149.00 B/s 0.50/s 0.00% 0 0 0 N/A Ethernet35 U 0 0.00 B/s 0.00/s 0.00% 0 0 0 8,108 149.00 B/s 0.50/s 0.00% 0 0 0 N/A Ethernet36 U 0 0.00 B/s 0.00/s 0.00% 0 0 0 8,108 149.00 B/s 0.50/s 0.00% 0 0 0 N/A Ethernet37 U 0 0.00 B/s 0.00/s 0.00% 0 0 0 8,108 149.00 B/s 0.50/s 0.00% 0 0 0 N/A Ethernet38 U 0 0.00 B/s 0.00/s 0.00% 0 0 0 8,108 149.00 B/s 0.50/s 0.00% 0 0 0 N/A Ethernet39 U 0 0.00 B/s 0.00/s 0.00% 0 0 0 8,108 149.00 B/s 0.50/s 0.00% 0 0 0 N/A Ethernet40 U 0 0.00 B/s 0.00/s 0.00% 0 0 0 8,108 149.00 B/s 0.50/s 0.00% 0 0 0 N/A Ethernet41 U 0 0.00 B/s 0.00/s 0.00% 0 0 0 8,108 149.00 B/s 0.50/s 0.00% 0 0 0 N/A Ethernet42 U 0 0.00 B/s 0.00/s 0.00% 0 0 0 8,108 149.00 B/s 0.50/s 0.00% 0 0 0 N/A Ethernet43 U 0 0.00 B/s 0.00/s 0.00% 0 0 0 8,108 149.00 B/s 0.50/s 0.00% 0 0 0 N/A Ethernet44 U 0 0.00 B/s 0.00/s 0.00% 0 0 0 8,108 149.00 B/s 0.50/s 0.00% 0 0 0 N/A Ethernet45 U 0 0.00 B/s 0.00/s 0.00% 0 0 0 8,108 149.00 B/s 0.50/s 0.00% 0 0 0 N/A Ethernet46 U 0 0.00 B/s 0.00/s 0.00% 0 0 0 8,108 149.00 B/s 0.50/s 0.00% 0 0 0 N/A Ethernet47 U 0 0.00 B/s 0.00/s 0.00% 0 0 0 8,108 149.00 B/s 0.50/s 0.00% 0 0 0 N/A Ethernet48 U 0 0.00 B/s 0.00/s 0.00% 0 0 0 8,108 149.00 B/s 0.50/s 0.00% 0 0 0 N/A Ethernet49 D 0 0.00 B/s 0.00/s 0.00% 0 0 0 0 0.00 B/s 0.00/s 0.00% 0 0 0 N/A Ethernet53 D 0 0.00 B/s 0.00/s 0.00% 0 0 0 0 0.00 B/s 0.00/s 0.00% 0 0 0 N/A Ethernet57 D 0 0.00 B/s 0.00/s 0.00% 0 0 0 0 0.00 B/s 0.00/s 0.00% 0 0 0 N/A Ethernet61 D 0 0.00 B/s 0.00/s 0.00% 0 0 0 0 0.00 B/s 0.00/s 0.00% 0 0 0 N/A Ethernet65 D 0 0.00 B/s 0.00/s 0.00% 0 0 0 0 0.00 B/s 0.00/s 0.00% 0 0 0 N/A Ethernet69 D 0 0.00 B/s 0.00/s 0.00% 0 0 0 0 0.00 B/s 0.00/s 0.00% 0 0 0 N/A Ethernet73 D 0 0.00 B/s 0.00/s 0.00% 0 0 0 0 0.00 B/s 0.00/s 0.00% 0 0 0 N/A Ethernet77 D 0 0.00 B/s 0.00/s 0.00% 0 0 0 0 0.00 B/s 0.00/s 0.00% 0 0 0 N/A </data></rpc-reply>Clear Interface Counters
Section titled “Clear Interface Counters”Request example to clear all interfaces counters on device via rpc clear-counters-interface
<clear-counters-interface/>Response example
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:d5fba0e0-32ad-4b5b-a188-6637efe2337b"> <data xmlns="http://asterfusion.com/ns/yang/asternos-interfaces">Cleared counters</data></rpc-reply>Create L3 Interface and Configure L3 Interface Attributes
Section titled “Create L3 Interface and Configure L3 Interface Attributes”Request example to create L3 interfaces and configure L3 interface attributes
<config><top> <interfaces operation="merge"> <interface> <name>Ethernet11</name> <interface-mode>routed</interface-mode> <mac-address>00:00:00:00:00:01</mac-address> <mtu>1500</mtu> <ipv4> <address> <ip-prefix>10.0.0.1/24</ip-prefix> </address> </ipv4> </interface> <interface> <name>Ethernet12</name> <interface-mode>routed</interface-mode> <mac-address>00:00:00:00:00:02</mac-address> <mtu>8192</mtu> <ipv6> <address> <ip-prefix>2000::1/64</ip-prefix> </address> <address> <ip-prefix>3000::1/64</ip-prefix> </address> </ipv6> </interface> <interface> <name>Loopback1</name> <ipv4> <address> <ip-prefix>60.0.0.1/24</ip-prefix> </address> </ipv4> </interface> </interfaces></top></config>Response example
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:e2450f35-4d62-4cd3-8860-579a84792681"> <ok/></rpc-reply>Delete L3 Interface
Section titled “Delete L3 Interface”WARNING
Section titled “WARNING”Deleting an interface will also remove any associated configuration, such as IP addresses.
Physical Ethernet interfaces cannot be deleted.
Use ‘interface-mode’ to change the mode of a physical interface.
Request example to delete L3 interfaces and change physical interfaces to L2 mode
<config><top> <interfaces> <interface operation="merge"> <name>Ethernet11</name> <interface-mode>none</interface-mode> </interface> <interface operation="merge"> <name>Ethernet12</name> <interface-mode>none</interface-mode> </interface> <interface operation="delete"> <name>Loopback1</name> </interface> </interfaces></top></config>Response example
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:6362a058-9ebb-49a1-bc8f-9f4809258c8c"> <ok/></rpc-reply>Configure Port Speed/Admin_Status/FEC
Section titled “Configure Port Speed/Admin_Status/FEC”<config><top> <interfaces operation="merge"> <interface> <name>Ethernet1</name> <ethernet-config> <port-speed>SPEED_1G</port-speed> <fec>none</fec> </ethernet-config> <admin-status>true</admin-status> </interface> <interface> <name>Ethernet2</name> <ethernet-config> <port-speed>SPEED_1G</port-speed> <fec>none</fec> </ethernet-config> <admin-status>true</admin-status> </interface> <interface> <name>Ethernet49</name> <ethernet-config> <port-speed>SPEED_1G</port-speed> <fec>rs</fec> </ethernet-config> <admin-status>false</admin-status> </interface> </interfaces></top></config>Show Interface Summary
Section titled “Show Interface Summary”Request example shows a summary of all interfaces in a table format via rpc show-interface-summary
<show-interface-summary/>Response example
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:eed0ac03-b443-4e74-a45b-b9228935f449"> <data xmlns="http://asterfusion.com/ns/yang/asternos-interfaces"> Interface Lanes Speed MTU FEC Alias Vlan Oper Admin Type Loopback Asym PFC ----------- ------- ------- ----- ----- ---------- ------ ------ ------- -------------- ---------- ---------- Ethernet1 0 1G 9216 none Ethernet1 N/A down up N/A none N/A Ethernet2 1 1G 9216 none Ethernet2 N/A up down N/A internal N/A Ethernet3 2 1G 9216 none Ethernet3 N/A down up N/A none N/A Ethernet4 3 1G 9216 none Ethernet4 N/A down up N/A none N/A Ethernet5 4 1G 9216 none Ethernet5 N/A down up N/A none N/A Ethernet6 5 1G 9216 none Ethernet6 N/A down up N/A none N/A Ethernet7 6 1G 9216 none Ethernet7 N/A down up N/A none N/A Ethernet8 7 1G 9216 none Ethernet8 N/A down up N/A none N/A Ethernet9 8 1G 9216 none Ethernet9 N/A down up N/A none N/A Ethernet10 9 1G 9216 none Ethernet10 N/A down up N/A none N/A Ethernet11 10 1G 9216 none Ethernet11 N/A down up N/A none N/A Ethernet12 11 1G 9216 none Ethernet12 N/A down up N/A none N/A Ethernet13 12 1G 9216 none Ethernet13 N/A down up N/A none N/A Ethernet14 13 1G 9216 none Ethernet14 N/A down up N/A none N/A Ethernet15 14 1G 9216 none Ethernet15 N/A down up N/A none N/A Ethernet16 15 1G 9216 none Ethernet16 N/A down up N/A none N/A Ethernet17 16 1G 9216 none Ethernet17 N/A down up N/A none N/A Ethernet18 17 1G 9216 none Ethernet18 N/A down up N/A none N/A Ethernet19 18 1G 9216 none Ethernet19 N/A down up N/A none N/A Ethernet20 19 1G 9216 none Ethernet20 N/A down up N/A none N/A Ethernet21 20 1G 9216 none Ethernet21 N/A down up N/A none N/A Ethernet22 21 1G 9216 none Ethernet22 N/A down up N/A none N/A Ethernet23 22 1G 9216 none Ethernet23 N/A down up N/A none N/A Ethernet24 23 1G 9216 none Ethernet24 N/A down up N/A none N/A Ethernet25 24 1G 9216 none Ethernet25 N/A down up N/A none N/A Ethernet26 25 1G 9216 none Ethernet26 N/A down up N/A none N/A Ethernet27 26 1G 9216 none Ethernet27 N/A down up N/A none N/A Ethernet28 27 1G 9216 none Ethernet28 N/A down up N/A none N/A Ethernet29 28 1G 9216 none Ethernet29 N/A down up N/A none N/A Ethernet30 29 1G 9216 none Ethernet30 N/A down up N/A none N/A Ethernet31 30 1G 9216 none Ethernet31 N/A down up N/A none N/A Ethernet32 31 1G 9216 none Ethernet32 N/A down up N/A none N/A Ethernet33 32 1G 9216 none Ethernet33 N/A down up N/A none N/A Ethernet34 33 1G 9216 none Ethernet34 N/A down up N/A none N/A Ethernet35 34 1G 9216 none Ethernet35 N/A down up N/A none N/A Ethernet36 35 1G 9216 none Ethernet36 N/A down up N/A none N/A Ethernet37 36 1G 9216 none Ethernet37 N/A down up N/A none N/A Ethernet38 37 1G 9216 none Ethernet38 N/A down up N/A none N/A Ethernet39 38 1G 9216 none Ethernet39 N/A down up N/A none N/A Ethernet40 39 1G 9216 none Ethernet40 N/A down up N/A none N/A Ethernet41 40 1G 9216 none Ethernet41 N/A down up N/A none N/A Ethernet42 41 1G 9216 none Ethernet42 N/A down up N/A none N/A Ethernet43 42 1G 9216 none Ethernet43 N/A down up N/A none N/A Ethernet44 43 1G 9216 none Ethernet44 N/A down up N/A none N/A Ethernet45 44 1G 9216 none Ethernet45 N/A down up N/A none N/A Ethernet46 45 1G 9216 none Ethernet46 N/A down up N/A none N/A Ethernet47 46 1G 9216 none Ethernet47 N/A down up N/A none N/A Ethernet48 47 1G 9216 none Ethernet48 N/A down up N/A none N/A Ethernet49 48 25G 9216 none Ethernet49 N/A down up N/A none N/A Ethernet50 49 25G 9216 none Ethernet50 N/A up down N/A internal N/A Ethernet51 50 25G 9216 none Ethernet51 N/A down up N/A none N/A Ethernet52 51 25G 9216 none Ethernet52 N/A down up N/A none N/A Ethernet53 52 25G 9216 none Ethernet53 N/A down up N/A none N/A Ethernet54 53 10G 9216 none Ethernet54 N/A down up SFP/SFP+/SFP28 none N/A </data></rpc-reply>Configure Port-Group
Section titled “Configure Port-Group”We recommend to configure device via edit-config where is possible.
This RPC give a capability to configure multiple physical ports in a time in a different way than edit-config.
Request example to configure port-group
<config-port-group> <interfaces>1,3-10</interfaces> <admin-status>false</admin-status> <ethernet-config> <auto-negotiate>false</auto-negotiate> <port-speed>SPEED_1G</port-speed> <fec>none</fec> </ethernet-config></config-port-group><rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:6327e50b-026e-4824-9183-a004c8c630c0"> <ok/></rpc-reply>Request example to configure PTP on port-group
<config-port-group> <interfaces>1-3</interfaces> <ptp> <instance-number>0</instance-number> <port-ds> <port-enable>true</port-enable> <port-state>master</port-state> <dscp>56</dscp> <log-sync-interval>-3</log-sync-interval> <log-announce-interval>0</log-announce-interval> <ptp-vlan>Vlan100</ptp-vlan> </port-ds> </ptp></config-port-group>Response example
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:6327e50b-026e-4824-9183-a004c8c630c0"> <ok/></rpc-reply>PTP instance must be created before binding to port-group ports.
Only one port-state of slave is allowed per PTP instance.
ptp-vlan requires the port to be a member of the specified VLAN.
Configure Lag-Group
Section titled “Configure Lag-Group”It’s recommended to configure device via edit-config where is possible.
Please create portchannels and vlans before calling config-lag-group
This RPC give a capability to configure multiple Portchannels in a time in a different way than edit-config.
request example to configure-lag-group
<config-lag-group> <lags>1-4</lags> <vlan-group-config> <vlan-ranges>1,3-10</vlan-ranges> <tagging-mode>tagged</tagging-mode> </vlan-group-config></config-lag-group>Response example
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:bbee64c4-e5e4-4800-b9fd-7a7e9e55e095"> <ok/></rpc-reply>Clear Vlan Membership on given port
Section titled “Clear Vlan Membership on given port”This RPC can have clear vlan membership on given physical port. If the port has been added to any vlan, will be removed from vlan after this RPC called.
Request example to clear vlan membership via rpc clear-vlan-membership
<clear-vlan-membership> <interface>Ethernet1</interface></clear-vlan-membership>Response example
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:899ffe4b-c837-41ea-8e9f-181c2db39f47"> <ok/></rpc-reply>Clear Router Interface on given port
Section titled “Clear Router Interface on given port”This RPC can have clear router interface on given physical port. If the port has been configured as L3 interface, will be changed to L2 mode after this RPC called.
Reqeust example to clear router interface via rpc clear-router-interface
<clear-router-interface> <interface>Ethernet11</interface></clear-router-interface>Response example
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:4758a538-5c4b-44a3-a259-b7e1d500d415"> <ok/></rpc-reply>Show IP Interface
Section titled “Show IP Interface”This RPC shows detailed information of all interface ips in a table format.
Request example to show ip interface via rpc show-ip-interface
<show-ip-interface/>Response example
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:ccb4faeb-0964-4fcb-9527-465709fed801"> <data xmlns="http://asterfusion.com/ns/yang/asternos-interfaces"> Interface Master IPv4 address/mask Admin/Oper BGP Neighbor Neighbor IP ----------- -------- ------------------- ------------ -------------- ------------- Loopback0 10.1.0.1/32 up/up N/A N/A </data></rpc-reply>Show IPv6 Interface
Section titled “Show IPv6 Interface”This RPC shows detailed information of all interface ipv6 in a table format.
Request example to show ipv6 interface via rpc show-ipv6-interface
<show-ipv6-interface/>Response example
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:2bb8992e-bc30-476a-ad47-f4d7113be8e0"> <data xmlns="http://asterfusion.com/ns/yang/asternos-interfaces"> Interface Master IPv6 address/mask Admin/Oper BGP Neighbor Neighbor IP ----------- -------- ------------------- ------------ -------------- ------------- Ethernet11 200::1/24 up/up N/A N/A </data></rpc-reply>Show Interface URPF
Section titled “Show Interface URPF”This RPC shows detailed information of all interface urpf in a table format.
Request example to show interface urpf via rpc show-interface-urpf
<show-interface-urpf/>Response example
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:f994b98f-d5b4-49b6-a5df-8e5fd1d569ba"> <data xmlns="http://asterfusion.com/ns/yang/asternos-interfaces"> Interfaces Status ------------ -------- Ethernet11 strict Ethernet14 loose </data></rpc-reply>Show Interface Error Down Status
Section titled “Show Interface Error Down Status”This RPC shows detailed information of all interface error down status in a table format.
Request example to show interface error down status via rpc show-interface-errdown
<show-interface-errdown/>Response example
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:7f6ed84a-ebd8-42dc-83b0-73f62b62b19c"> <data xmlns="http://asterfusion.com/ns/yang/asternos-interfaces"> <errdown-info> <interface>Ethernet1</interface> <state>up</state> </errdown-info> <errdown-info> <interface>Ethernet2</interface> <state>up</state> </errdown-info> <errdown-info> <interface>Ethernet3</interface> <state>up</state> </errdown-info> <errdown-info> <interface>Ethernet4</interface> <state>up</state> </errdown-info> <!-- more --> <errdown-info> <interface>Ethernet73</interface> <state>up</state> </errdown-info> <errdown-info> <interface>Ethernet77</interface> <state>up</state> </errdown-info> </data></rpc-reply>Show Interface Port Info
Section titled “Show Interface Port Info”This RPC shows detailed information of all interface port info in a CLI format.
Request example to show interface port info via rpc show-interface-port
<show-interface-port> <interface>Ethernet11</interface></show-interface-port>Response example
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:5c8da3e6-574e-4886-82ba-e949ec34535f"> <data xmlns="http://asterfusion.com/ns/yang/asternos-interfaces"> Ethernet11 is up, line protocol is up Hardware is Eth Interface index is 11 Description: Mode of IPV4 address assignment: not-set Mode of IPV6 address assignment: not-set IP MTU 1500 bytes LineSpeed 25.0G Input statistics: 0 packets, 0 octets 0 Multicasts, 0 Broadcasts, 0 Unicasts 0 error, 0 discarded 0 ipv4Packets, 0 ipv4Octets 0 ipv6Packets, 0 ipv6Octets Output statistics: 2348 packets, 650,848 octets 2,348 Multicasts, 0 Broadcasts, 0 Unicasts 0 error, 0 discarded 0 ipv4Octets, 1,996 ipv6Octets</data></rpc-reply>Show Sub-Interface Summary
Section titled “Show Sub-Interface Summary”This RPC shows a summary of all sub-interfaces in a table format.
Request example to show sub-interface summary via rpc show-sub-interface
<show-sub-interface/>Response example
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:44e74fc3-aeb0-4787-bf7f-327bc3d8a030"> <data xmlns="http://asterfusion.com/ns/yang/asternos-interfaces"> Sub port interface Speed MTU Vlan Admin Type -------------------- ------- ----- ------ ------- -------------------- Po0013.6 25G 9216 6 up 802.1q-encapsulation </data></rpc-reply>Properties Descriptions
Section titled “Properties Descriptions”Bandwidth Util Warn
Section titled “Bandwidth Util Warn”Tree Diagram
module: asternos-ports
augment /if:interfaces/if:interface: +--rw ethernet-config +--rw bandwidth-util-warn +--rw l2-protocol-control +--rw link-flappingEthernet Config
Section titled “Ethernet Config”Tree Diagram
module: asternos-ports
augment /if:interfaces/if:interface: +--rw ethernet-config +--rw bandwidth-util-warn +--rw l2-protocol-control +--rw link-flappingTree Diagram
module: asternos-ip
augment /if:interfaces/if:interface: +--rw ipv4 +--rw ipv6Address
Section titled “Address”Tree Diagram
module: asternos-ip
augment /if:interfaces/if:interface: +--rw ipv4 +--rw ipv6Neighbor
Section titled “Neighbor”Tree Diagram
module: asternos-ip
augment /if:interfaces/if:interface: +--rw ipv4 +--rw ipv6Tree Diagram
module: asternos-ip
augment /if:interfaces/if:interface: +--rw ipv4 +--rw ipv6Address
Section titled “Address”Tree Diagram
module: asternos-ip
augment /if:interfaces/if:interface: +--rw ipv4 +--rw ipv6Neighbor
Section titled “Neighbor”Tree Diagram
module: asternos-ip
augment /if:interfaces/if:interface: +--rw ipv4 +--rw ipv6Router Advertisement
Section titled “Router Advertisement”Tree Diagram
module: asternos-ip
augment /if:interfaces/if:interface: +--rw ipv4 +--rw ipv6Prefixes
Section titled “Prefixes”Tree Diagram
module: asternos-ip
augment /if:interfaces/if:interface: +--rw ipv4 +--rw ipv6Rdnsses
Section titled “Rdnsses”Tree Diagram
module: asternos-ip
augment /if:interfaces/if:interface: +--rw ipv4 +--rw ipv6Routes
Section titled “Routes”Tree Diagram
module: asternos-ip
augment /if:interfaces/if:interface: +--rw ipv4 +--rw ipv6L2 Protocol
Section titled “L2 Protocol”Tree Diagram
module: asternos-ports
augment /if:interfaces/if:interface: +--rw ethernet-config +--rw bandwidth-util-warn +--rw l2-protocol-control +--rw link-flappingLink Flapping
Section titled “Link Flapping”Tree Diagram
module: asternos-ports
augment /if:interfaces/if:interface: +--rw ethernet-config +--rw bandwidth-util-warn +--rw l2-protocol-control +--rw link-flappingInterface parameters
Section titled “Interface parameters”Tree Diagram
module: asternos-interfaces +--rw interfaces +--rw interface* [name] +--rw name union +--rw description? cmn:description-type +--rw admin-status? boolean +--rw interface-mode? enumeration +--ro oper-status? boolean +--ro error-down-status? boolean +--ro error-down-reason? string +--rw mac-address? yang:mac-address +--rw mtu? if:mtu-type +--rw vrf? vrf:vrf-ref +--rw tpid? string +--rw urpf-mode? enumeration +--rw pbr-policy? string +--rw ipv6-link-local? boolean +--rw suppress-ra? boolean +--rw (interval)? | +--:(seconds) | | +--rw ra-interval? uint32 | +--:(milliseconds) | +--rw ra-interval-msec? uint32 +--ro statistics +--ro in-octets? yang:counter64 +--ro in-unicast-pkts? yang:counter64 +--ro in-broadcast-pkts? yang:counter64 +--ro in-multicast-pkts? yang:counter64 +--ro in-discards? yang:counter64 +--ro in-errors? yang:counter64 +--ro in-ipv4-pkts? yang:counter64 +--ro in-ipv4-octets? yang:counter64 +--ro in-ipv6-pkts? yang:counter64 +--ro in-ipv6-octets? yang:counter64 +--ro out-octets? yang:counter64 +--ro out-unicast-pkts? yang:counter64 +--ro out-broadcast-pkts? yang:counter64 +--ro out-multicast-pkts? yang:counter64 +--ro out-discards? yang:counter64 +--ro out-errors? yang:counter64 +--ro out-ipv4-octets? yang:counter64 +--ro out-ipv6-octets? yang:counter64 +--ro dhcp-snooping-drop-pkts? yang:counter64Table of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| interfaces | M | Path-only node, has no configurable value. Interface parameters. | |
| interface | M | Path-only node, has no configurable value. The list of interfaces on the device. | |
| name | O | Ethernet name | The name of the interface. |
| description | O | cmn:description-type | A textual description of the interface. |
| admin-status | O | ”true" "false” | This leaf contains the configured, desired state of the interface. Default value: True |
| interface-mode | O | ”routed" "trunk" "none” | Set the interface to access, trunk, none mode. VLAN and IP interface configuration may be automatically deleted after changing this field. |
| oper-status | RO | ”true" "false” | The current operational state of the interface. |
| error-down-status | RO | ”true" "false” | The current error down state of the interface. |
| error-down-reason | RO | string | The current reason for error down state of the interface. |
| mac-address | O | yang:mac-address | The interface’s address at its protocol sub-layer. For example, for an 802.x interface, this object normally contains a Media Access Control (MAC) address. The interface’s media-specific modules must define the bit and byte ordering and the format of the value of this object. For interfaces that do not have such an address (e.g., a serial line), this node is not present. |
| mtu | O | if:mtu-type | Set the max transmission unit size in octets for the physical interface. If this is not set, the mtu is set to the operational default Default value: 9216 |
| vrf | O | vrf:vrf-ref | Set interface VRF. |
| tpid | O | string | Set the TPID value for the interface. The default is 0x8100. Default value: 0x8100 |
| urpf-mode | O | ”disable" "loose" "strict” | The URPF in STRICT mode requires packet source address to LPM some route in FIB, AND next-hop of this route must be interface packet was received on. The URPF in LOOSE mode requires packet source address to LPM some route in FIB. This leaf is irrelevalnt and should be ignored if URPF is not enabled. |
| pbr-policy | O | string | Name of the pbr-map to apply.Only support in ethernet and portchannel, not support sub interface. |
| ipv6-link-local | O | ”true" "false” | Set ipv6 use link local. Default value: False |
| suppress-ra | O | ”true" "false” | Set to ‘true’ to suppress IPv6 Router Advertisements on this interface. When ‘false’ or not set, RA is enabled and the interval can be configured using one of the interval options below. |
| ra-interval | O | 1..1800 | Maximum RA interval in seconds. Example: ‘ipv6 nd ra-interval 5’ sets max interval to 5 seconds. |
| ra-interval-msec | O | 70..1800000 | Maximum RA interval in milliseconds. Example: ‘ipv6 nd ra-interval msec 500’ sets max interval to 500 ms. |
| statistics | RO | Path-only node, has no configurable value. A collection of interface-related statistics objects. | |
| in-octets | RO | yang:counter64 | The total number of octets received on the interface, including framing characters. Discontinuities in the value of this counter can occur at re-initialization of the management system and at other times as indicated by the value of ‘discontinuity-time’. |
| in-unicast-pkts | RO | yang:counter64 | The number of packets, delivered by this sub-layer to a higher (sub-)layer, that were not addressed to a multicast or broadcast address at this sub-layer. Discontinuities in the value of this counter can occur at re-initialization of the management system and at other times as indicated by the value of ‘discontinuity-time’. |
| in-broadcast-pkts | RO | yang:counter64 | The number of packets, delivered by this sub-layer to a higher (sub-)layer, that were addressed to a broadcast address at this sub-layer. Discontinuities in the value of this counter can occur at re-initialization of the management system and at other times as indicated by the value of ‘discontinuity-time’. |
| in-multicast-pkts | RO | yang:counter64 | The number of packets, delivered by this sub-layer to a higher (sub-)layer, that were addressed to a multicast address at this sub-layer. For a MAC-layer protocol, this includes both Group and Functional addresses. Discontinuities in the value of this counter can occur at re-initialization of the management system and at other times as indicated by the value of ‘discontinuity-time’. |
| in-discards | RO | yang:counter64 | The number of inbound packets that were chosen to be discarded even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. One possible reason for discarding such a packet could be to free up buffer space. Discontinuities in the value of this counter can occur at re-initialization of the management system and at other times as indicated by the value of ‘discontinuity-time’. |
| in-errors | RO | yang:counter64 | For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character- oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system and at other times as indicated by the value of ‘discontinuity-time’. |
| in-ipv4-pkts | RO | yang:counter64 | The total number of input IPv4 datagrams received. Discontinuities in the value of this counter can occur at re-initialization of the management system and at other times as indicated by the value of ‘discontinuity-time’. |
| in-ipv4-octets | RO | yang:counter64 | The total number of octets received in input IPv4 datagrams. Discontinuities in the value of this counter can occur at re-initialization of the management system and at other times as indicated by the value of ‘discontinuity-time’. |
| in-ipv6-pkts | RO | yang:counter64 | The total number of input IPv6 datagrams received. Discontinuities in the value of this counter can occur at re-initialization of the management system and at other times as indicated by the value of ‘discontinuity-time’. |
| in-ipv6-octets | RO | yang:counter64 | The total number of octets received in input IPv6 datagrams. Discontinuities in the value of this counter can occur at re-initialization of the management system and at other times as indicated by the value of ‘discontinuity-time’. |
| out-octets | RO | yang:counter64 | The total number of octets transmitted out of the interface, including framing characters. Discontinuities in the value of this counter can occur at re-initialization of the management system and at other times as indicated by the value of ‘discontinuity-time’. |
| out-unicast-pkts | RO | yang:counter64 | The total number of packets that higher-level protocols requested be transmitted and that were not addressed to a multicast or broadcast address at this sub-layer, including those that were discarded or not sent. Discontinuities in the value of this counter can occur at re-initialization of the management system and at other times as indicated by the value of ‘discontinuity-time’. |
| out-broadcast-pkts | RO | yang:counter64 | The total number of packets that higher-level protocols requested be transmitted and that were addressed to a broadcast address at this sub-layer, including those that were discarded or not sent. Discontinuities in the value of this counter can occur at re-initialization of the management system and at other times as indicated by the value of ‘discontinuity-time’. |
| out-multicast-pkts | RO | yang:counter64 | The total number of packets that higher-level protocols requested be transmitted and that were addressed to a multicast address at this sub-layer, including those that were discarded or not sent. For a MAC-layer protocol, this includes both Group and Functional addresses. Discontinuities in the value of this counter can occur at re-initialization of the management system and at other times as indicated by the value of ‘discontinuity-time’. |
| out-discards | RO | yang:counter64 | The number of outbound packets that were chosen to be discarded even though no errors had been detected to prevent their being transmitted. One possible reason for discarding such a packet could be to free up buffer space. Discontinuities in the value of this counter can occur at re-initialization of the management system and at other times as indicated by the value of ‘discontinuity-time’. |
| out-errors | RO | yang:counter64 | For packet-oriented interfaces, the number of outbound packets that could not be transmitted because of errors. For character-oriented or fixed-length interfaces, the number of outbound transmission units that could not be transmitted because of errors. Discontinuities in the value of this counter can occur at re-initialization of the management system and at other times as indicated by the value of ‘discontinuity-time’. |
| out-ipv4-octets | RO | yang:counter64 | The total number of octets in output IPv4 datagrams. Discontinuities in the value of this counter can occur at re-initialization of the management system and at other times as indicated by the value of ‘discontinuity-time’. |
| out-ipv6-octets | RO | yang:counter64 | The total number of octets in output IPv6 datagrams. Discontinuities in the value of this counter can occur at re-initialization of the management system and at other times as indicated by the value of ‘discontinuity-time’. |
| dhcp-snooping-drop-pkts | RO | yang:counter64 | The total number of packets that were dropped by DHCP snooping. This statistic relies on the activation of the DHCP snooping function. When IPSG/DAI/SAVI are enabled, the interface discards all packets except those matching DHCP snooping entries, and this statistic will be accumulated. |
| ipv4 | M | Path-only node, has no configurable value. Parameters for the IPv4 address family. | |
| address | M | Path-only node, has no configurable value. The list of IPv4 addresses on the interface. | |
| ip-prefix | O | inet:ip-prefix | |
| dhcp-alloc | O | ”true" "false” | Indicates whether DHCP is enabled on the interface. When address is configured, DHCP is automatically set false. Default value: False |
| neighbor | M | Path-only node, has no configurable value. A list of mappings from IPv4 addresses to link-layer addresses. Entries in this list in the intended configuration are used as static entries in the ARP Cache. In the operational state, this list represents the ARP Cache. | |
| ip | O | inet:ipv4-address-no-zone | The IPv4 address of the neighbor node. |
| mac-address | M | yang:mac-address | The link-layer address of the neighbor node. |
| origin | RO | ”other" "static" "dynamic” | The origin of this neighbor entry. |
| ipv6 | M | Path-only node, has no configurable value. Parameters for the IPv6 address family. | |
| address | M | Path-only node, has no configurable value. The list of IPv6 addresses on the interface. | |
| ip-prefix | O | inet:ip-prefix | |
| neighbor | M | Path-only node, has no configurable value. A list of mappings from IPv6 addresses to link-layer addresses. Entries in this list in the intended configuration are used as static entries in the Neighbor Cache. In the operational state, this list represents the Neighbor Cache. | |
| ip | O | inet:ipv6-address-no-zone | The IPv6 address of the neighbor node. |
| mac-address | M | yang:mac-address | The link-layer address of the neighbor node. In the operational state, if the neighbor’s ‘state’ leaf is ‘incomplete’, this leaf is not instantiated. |
| origin | RO | ”other" "static" "dynamic” | The origin of this neighbor entry. |
| is-router | RO | empty | Indicates that the neighbor node acts as a router. |
| state | RO | ”incomplete" "reachable" "stale" "delay" "probe” | The Neighbor Unreachability Detection state of this entry. |
| router-advertisement | M | Path-only node, has no configurable value. Support for IPv6 Router Advertisements. | |
| managed-flag | O | ”true" "false” | The value to be placed in the ‘Managed address configuration’ flag field in the Router Advertisement. Default value: False |
| other-config-flag | O | ”true" "false” | The value to be placed in the ‘Other configuration’ flag field in the Router Advertisement. Default value: False |
| link-mtu | O | cmn:mtu-type | The value to be placed in MTU options sent by the router. A value of zero indicates that no MTU options are sent. Default value: 9216 |
| on-link-flag | O | ”true" "false” | The value to be placed in the on-link flag (‘L-bit’) field in the Prefix Information option. Default value: True |
| autonomous-flag | O | ”true" "false” | The value to be placed in the Autonomous Flag field in the Prefix Information option. Default value: True |
| prefixes | M | Path-only node, has no configurable value. Support for an advertised prefix entry. | |
| prefix | O | inet:ipv6-prefix | IPv6 address prefix. |
| rdnsses | M | Path-only node, has no configurable value. Support for an advertised prefix entry. | |
| rdnss | O | inet:ipv6-address-no-zone | IPv6 address. |
| routes | M | Path-only node, has no configurable value. Support for an advertised prefix entry. | |
| route | O | inet:ipv6-prefix | IPv6 address prefix. |
| preferred | O | ”low" "medium" "high” | The value to be placed in the Route Preference in the Route Information option. The preference associated with the default router, as either ‘low’, ‘medium’, or ‘high’. Default value: medium |
| ethernet-config | M | Path-only node, has no configurable value. | |
| auto-negotiate | O | ”true" "false” | Set interface speed auto negotiation. Default enabled for all 1G/2.5G/10G/25G ports, disabled for 40G/100G/400G ports. Default value: False |
| port-speed | O | ”SPEED_10M" "SPEED_100M" "SPEED_10G" "SPEED_25G" "SPEED_2_5G" "SPEED_40G" "SPEED_1G" "SPEED_100G” | When auto-negotiate is TRUE, this optionally sets the port-speed mode that will be advertised to the peer for negotiation. If unspecified, it is expected that the interface will select the highest speed available based on negotiation. When auto-negotiate is set to FALSE, sets the link speed to a fixed value — supported values are defined by PORT_SPEED identities |
| fec | O | ”rs" "fc" "none” | Set interface fec. Default value: rs |
| lanes | RO | integer | lanes of Ethernet.eg: lanes of Ethernet1 is 1 |
| index | RO | integer | index of Ethernet, eg: index of Ethernet1 is 1 |
| alias | RO | string | alias of Ethernet. eg: alias of Ethernet1 is Y2 |
| mac-address-learning | O | ”true" "false” | Set interface mac-address learning, only support for vlan and its members. Default value: True |
| unknown-unicast-action | O | ”flood" "drop” | Set the unknown unicast packets forwarding action |
| unknown-multicast-action | O | ”flood" "drop” | Set the unknown multicast packets forwarding action |
| broadcast-action | O | ”flood" "drop” | Set the broadcast packets forwarding action |
| startup-delay | O | 0..600 | when fisrt admin up, delay few seconds to wait hardware or software initdone |
| loopback | O | ”internal" "none” | Set interface loopback mode. |
| loopback-binding | O | ”srv6" "none” | Set loopback binding mode. |
| bandwidth-util-warn | M | Path-only node, has no configurable value. Configure interface bandwidth utilization alarm threshold | |
| rx-alert-threshold | O | 50..100 | Default value: 80 |
| rx-resume-threshold | O | 50..100 | Default value: 75 |
| tx-alert-threshold | O | 50..100 | Default value: 80 |
| tx-resume-threshold | O | 50..100 | Default value: 75 |
| l2-protocol-control | M | Path-only node, has no configurable value. Disable Layer 2 protocol packets trap to the CPU. | |
| l2-protocol | M | Path-only node, has no configurable value. l2 protocol control. | |
| protocol-type | O | ”stp" "lacp" "lldp” | l2 protocol name. |
| disable | O | ”true" "false” | Control Layer 2 protocol packets trap to the CPU. |
| link-flapping | M | Path-only node, has no configurable value. Interface link flapping detection configuration. | |
| enabled | O | ”true" "false” | Enable link flapping detection. |
| action | O | ”error-down” | Link flapping action. |
| interval | O | 5..60 | Link flapping monitoring period. Default value: 10 |
| threshold | O | 5..30 | Frequent UP/DOWN events threshold count. Default value: 5 |
| poe | M | Path-only node, has no configurable value. poe function of interface. | |
| enable-mode | O | ”disable" "enable" "high-inrush" "force” | The poe enable mode of interface. enable: port POE enable. high_inrush: port POE enable with ignored inrush check. At the end of port power up flow, ILIM state is ignored and the port will continue to regular ON state. force: port POE enable withh force power.To supply power to non-compliant PDs that would otherwise be rejected by the standard handshake. Force power mode presents a significant risk of damage to legacy non-PoE devices if connected, as it removes the intrinsic safety protection. It should be enabled only on ports connected to known PoE-capable equipment. Default value: disable |
| delay | O | 0..3600 | This command is used to delay the activation of Power over Etthernet (POE) power supply on an interface based on actual usage requirements. When the uplink link state stabilizes, andthe protocols are running correctly, PoE power is supplied to the connected POE devices. This delay mechanism is usefulfor ensuring that PoE devices receive power only when the network is stable and ready to support them. |
| priority | O | ”low" "high" "critical” | Set poe power supply priority of this interface. |
| max-power | O | ”15w" "30w" "30w-at" "60w" "90w” | Set Maximum poe power supply, WARNING: not support 90w currently. |
| legacy-detect | O | ”true" "false” | Set poe legacy detection Default value: False |
| power-off-time-range | O | → leafref | Set poe power-off period rules. |
| poe-pd-alive-check | M | Path-only node, has no configurable value. | |
| config | M | Path-only node, has no configurable value. poe pd alive check configuration of interface. | |
| mode | O | ”disable" "enable” | Enabled or disabled poe pd alive check functions for port. Default value: disable |
| pd-ip | O | inet:ip-address-no-zone | The ip address of pd device for alive check. |
| delay | O | 5..300 | The delay time for pd alive check after POE power up. Default value: 60 |
| interval | O | 10..300 | The time duration between two pd alive check packets. Default value: 30 |
| err-threshold | O | 1..5 | The threshold of continuous pd alive check failure. Default value: 3 |
| action | O | ”reboot" "alarm” | The action when pd alive check failure reaches the threshold. reboot: cycle poe power supply. alarm: alarm on syslog. Default value: alarm |
| reboot-interval | O | 1..180 | The interval time between two pd power cycle actions. Default value: 10 |
| state | M | Path-only node, has no configurable value. poe pd alive check status. | |
| err-count | RO | integer | The current failed counts of pd alive check. It will be reset after POE cycle |
| alive | RO | ”true" "false” | The alive status of PD devices. Default value: False |
| last-ping-time | RO | integer | The time for last PD alivecheck. It contains the seconds since system power up |
| transceiver | RO | Path-only node, has no configurable value. information of transceiver. | |
| lpmode | RO | ”true" "false” | low-power mode information of SFP transceiver. Default value: False |
| presence | RO | ”true" "false” | presence information of SFP transceiver. Default value: False |
| eeprom | RO | Path-only node, has no configurable value. Electrically Erasable Programmable ROM(EEPROM) information of SFP transceiver. | |
| application-advertisement | RO | string | Eeprom application advertisement. |
| connector | RO | string | Physical connector type used by the transceiver. |
| encoding | RO | string | Encoding mechanism for serial data. |
| ext-identifier | RO | string | Extended identifier, providing additional module information. |
| ext-rateselect-compliance | RO | string | Extended RateSelect compliance, defines supported rate selection mechanism. |
| type | RO | string | Transceiver identifier. |
| cable-length | RO | string | Supported cable length. |
| cable-type | RO | string | Cable type supported. |
| nominal-bit-rate | RO | string | Nominal signaling rate of the transceiver. |
| specification-compliance | RO | string | Compliance codes indicating supported Ethernet/Fibre Channel standards. |
| vendor-date | RO | string | Vendor manufacturing date code (YYYY-MM-DD). |
| manufacturer | RO | string | Vendor or manufacturer name string. |
| vendor-oui | RO | string | Vendor Organizationally Unique Identifier in hex. |
| model | RO | string | Vendor part number (PN) or model identifier of the transceiver. |
| vendor-rev | RO | string | Vendor revision string of the part number. |
| serial | RO | string | Unique serial number assigned by the vendor. |
| dom | RO | Path-only node, has no configurable value. Digital Optical Monitoring (DOM) data. | |
| rx1power | RO | string | Received optical power on channel 1. |
| rx2power | RO | string | Received optical power on channel 2. |
| rx3power | RO | string | Received optical power on channel 3. |
| rx4power | RO | string | Received optical power on channel 4. |
| tx1bias | RO | string | Laser bias current on channel 1. |
| tx2bias | RO | string | Laser bias current on channel 2. |
| tx3bias | RO | string | Laser bias current on channel 3. |
| tx4bias | RO | string | Laser bias current on channel 4. |
| tx1power | RO | string | Transmitted optical power on channel 1. |
| tx2power | RO | string | Transmitted optical power on channel 2. |
| tx3power | RO | string | Transmitted optical power on channel 3. |
| tx4power | RO | string | Transmitted optical power on channel 4. |
| txpowerhighalarm | RO | string | High alarm threshold for TX optical power. |
| txpowerlowalarm | RO | string | Low alarm threshold for TX optical power. |
| txpowerhighwarning | RO | string | High warning threshold for TX optical power. |
| txpowerlowwarning | RO | string | Low warning threshold for TX optical power. |
| rxpowerhighalarm | RO | string | High alarm threshold for RX optical power. |
| rxpowerlowalarm | RO | string | Low alarm threshold for RX optical power. |
| rxpowerhighwarning | RO | string | High warning threshold for RX optical power. |
| rxpowerlowwarning | RO | string | Low warning threshold for RX optical power. |
| txbiashighalarm | RO | string | High alarm threshold for TX bias current. |
| txbiaslowalarm | RO | string | Low alarm threshold for TX bias current. |
| txbiashighwarning | RO | string | High warning threshold for TX bias current. |
| txbiaslowwarning | RO | string | Low warning threshold for TX bias current. |
| temphighalarm | RO | string | High alarm threshold for module temperature. |
| templowalarm | RO | string | Low alarm threshold for module temperature. |
| temphighwarning | RO | string | High warning threshold for module temperature. |
| templowwarning | RO | string | Low warning threshold for module temperature. |
| vcchighalarm | RO | string | High alarm threshold for supply voltage. |
| vcclowalarm | RO | string | Low alarm threshold for supply voltage. |
| vcchighwarning | RO | string | High warning threshold for supply voltage. |
| vcclowwarning | RO | string | Low warning threshold for supply voltage. |
| temperature | RO | string | Current module temperature. |
| voltage | RO | string | Current supply voltage. |
| vlan-config | M | Path-only node, has no configurable value. VLAN related configuration that is part of the physical Ethernet interface. | |
| vlan | M | Path-only node, has no configurable value. | |
| vlan-id | O | cmn:vlan-id | VLAN identity |
| tagging-mode | O | ”tagged" "untagged” | Specifies the type of interface as a vlan member Default value: tagged |
| untagged-enable | O | ”true" "false” | Specifies whether to strip vlan tag when interface is joined to vlan in tagging mode Default value: False |
| arp-dynamic-learning | M | Path-only node, has no configurable value. ARP dynamic learning on interfaces. | |
| mode | O | ”disable" "default" "anycast_gw” | ARP proxy mode. Default value: disable |
| nd-dynamic-learning | M | Path-only node, has no configurable value. ARP dynamic learning on interfaces. | |
| nd-mode | O | ”disable" "default" "anycast_gw” | ND proxy mode. Default value: disable |
| vlan-translation | M | Path-only node, has no configurable value. | |
| basic-qinq-enable | O | ”true" "false” | When true, all packet coming in from this port will be added with a PVID VLAN tag whether it is tagged or not. |
| stackings | M | Path-only node, has no configurable value. | |
| stacking | M | Path-only node, has no configurable value. VLAN stack configuration | |
| original-vlan | O | 0..4094 | The original VLAN ID of the packet. When the ‘original-vlan’ is 0, it means that all untagged packets will be tagged with both service VLAN and customer VLAN. When the ‘original-vlan’ is not 0, it means the packets only carrying the specified VLAN ID will be tagged with service VLAN. |
| customer-vlan | O | cmn:vlan-id | The customer VLAN to be tagged for those untagged packets. |
| service-vlan | M | cmn:vlan-id | The service VLAN to be tagged. |
| remark-tc | O | 0..7 | The remarking value for the traffic class of the packet. |
| upstream-port | M | cmn:ethernet-port-name | The upstream port of NNI. Only when the ‘original-vlan’ is 0, this leaf is mandatory, Otherwise, it can’t be set. |
| mappings | M | Path-only node, has no configurable value. VLAN mapping configuration. | |
| mapping | M | Path-only node, has no configurable value. VLAN mapping configuration. | |
| original-vlan | O | cmn:vlan-id | The original VLAN ID of the packet. |
| stage | O | ”ingress" "egress" "both” | The stage of the mapping. |
| mapping-vlan | O | cmn:vlan-id | The mapping VLAN ID, ‘original-vlan’ will be mapped to this VLAN ID. |
| ingress-policer-name | O | → leafref | Traffic behavior for port |
| mac-security | M | Path-only node, has no configurable value. | |
| port-security | M | Path-only node, has no configurable value. Port security configurations for port | |
| enabled | O | ”true" "false” | Enable port security on this interface. Default value: False |
| sticky-enabled | O | ”true" "false” | Enable sticky MAC on this interface. Default value: False |
| violation-action | O | ”protect" "restrict" "shutdown” | Action to take when security violation occurs Default value: restrict |
| maximum | O | integer | Maximum number of secure MAC addresses allowed on this port Default value: 1 |
| secure-addresses | M | Path-only node, has no configurable value. | |
| secure-address | M | Path-only node, has no configurable value. Statically configured secure MAC addresses | |
| mac-address | O | yang:mac-address | Static secure MAC address |
| vlan-id | O | 1..4094 | |
| mac-limit | M | Path-only node, has no configurable value. | |
| maximum | O | 0..32000 | Set LAG dynamic MAC quantity limit. |
| mac-learning-priority | M | Path-only node, has no configurable value. | |
| priority | O | ”low" "high” | Set interface MAC learning priority. |
| mac-learning-group | O | 0..15 | Address movement between same priority interfaces is allowed only if both interfaces belong to the same learning group. |
| mac-scan-enabled | O | ”true" "false” | VLAN level MAC scan enable. Default value: False |
| mac-scan-ips | O | string | mac-scan ip-ranges; supports comma-separated prefixes/ranges, e.g. ‘80.0.0.1-90.0.0.2,91.0.0.1/24-91.0.0.5/24,92.0.0.3/24,93.0.0.2’. |
Statistics
Section titled “Statistics”Tree Diagram
module: asternos-interfaces +--rw interfacesMember
Section titled “Member”Tree Diagram
module: asternos-portchannels +--rw portchannelsPortchannels
Section titled “Portchannels”Tree Diagram
module: asternos-portchannels +--rw portchannels +--rw portchannel* [name] +--rw name string +--rw mac-address-learning? boolean +--rw mode? enumeration +--rw commit? boolean +--rw lacp | +--rw system-priority? uint16 | +--rw fallback? boolean | +--rw fast-rate? boolean | +--rw system-id? ietf-yang-types:mac-address +--rw members +--rw member* [port] +--rw port cmn:ethernet-port-name +--rw lacp-port-priority? uint16Table of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| portchannels | M | Path-only node, has no configurable value. | |
| portchannel | M | Path-only node, has no configurable value. The list of interfaces on the device. | |
| name | O | None | The name of the PortChannel and PortChannel sub interface. |
| mac-address-learning | O | ”true" "false” | Set interface mac-address learning, only support for vlan and its members. Default value: True |
| mode | O | ”lacp" "static” | Choose port-channel mode: lacp for running LACP protocol, static for static load banlancing among members Default value: static |
| commit | O | ”true" "false” | This is a special leaf to control behavior of server while processing configuration. If set to false, configurations within this block setting to running datastore WOULD NOT be synchronized to operational datastore automatically. If true, configurations will be synchronized to operational datastore automatically. In most cases, this is useless and can be ignored. Default value: True |
| lacp | M | Path-only node, has no configurable value. LACP Protocol configuration of portchannels | |
| system-priority | O | 0..65535 | The LACP system priority identifies the master switch ot the LAG. The system with the lower system priority is preferred. Default value: 65535 |
| fallback | O | ”true" "false” | The fallback mode brings up one of the LACP member ports to ‘UP’ state before an LACP PDU is received by the LAG. Default value: False |
| fast-rate | O | ”true" "false” | Fast-rate allows the LACP peer to send LACP PDUs at a rate of one per second after synchronization. The default rate is one per 30 seconds. Default value: False |
| system-id | O | ietf-yang-types:mac-address | Change LACP system id. Default to the system MAC |
| members | M | Path-only node, has no configurable value. | |
| member | M | Path-only node, has no configurable value. | |
| port | O | cmn:ethernet-port-name | |
| lacp-port-priority | O | integer | The port priority determines which ports should be put in standby mode when there is a hardware limitation that prevents all compatible ports from aggregating. Ports with lower port-priority are preferred. |
Ports Global
Section titled “Ports Global”Tree Diagram
module: asternos-ports +--rw ports-global +--rw link-delay? uint16
augment /if:interfaces/if:interface: +--rw ethernet-config +--rw bandwidth-util-warn +--rw l2-protocol-control +--rw link-flappingTable of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| ports-global | M | Path-only node, has no configurable value. | |
| link-delay | O | 2..100 | When the physical state of an interface changes from down to up, wait for a period of time before reporting the interface up event to prevent frequent network status changes caused by interface status oscillations |
Clear Counters Interface
Section titled “Clear Counters Interface”Tree Diagram
module: asternos-interfaces
rpcs: +---x clear-counters-interface +--ro output +--ro data? stringTable of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| clear-counters-interface | O | ||
| data | O | string | the result of clear counters interface. |
Clear Dhcp Snooping Drop Pkts
Section titled “Clear Dhcp Snooping Drop Pkts”Tree Diagram
module: asternos-interfaces
rpcs: +---x clear-dhcp-snooping-drop-pkts +--ro output +--ro data? stringTable of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| clear-dhcp-snooping-drop-pkts | O | ||
| data | O | string | the result of clear dhcp snooping drop packets counters. |
Clear Router Interface
Section titled “Clear Router Interface”Tree Diagram
module: asternos-interfaces
rpcs: +---x clear-router-interface +---w input +---w interface stringTable of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| clear-router-interface | O | ||
| interface | M | string | The name of the interface. |
Clear Vlan Membership
Section titled “Clear Vlan Membership”Tree Diagram
module: asternos-interfaces
rpcs: +---x clear-vlan-membership +---w input +---w interface stringTable of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| clear-vlan-membership | O | ||
| interface | M | string | The name of the interface. |
Config Lag Group
Section titled “Config Lag Group”Tree Diagram
module: asternos-interfaces
rpcs: +---x config-lag-group +---w input +---w lags? interface-ids +---w operation? rpc-operation-type +---w vlan-group-config +---w vlan-ranges? vlan-range +---w tagging-mode? enumeration +---w untagged-enable? booleanTable of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| config-lag-group | O | ||
| lags | O | None | Port group lags on the device, eg: 1-3,5,7 |
| operation | O | ”create" "merge" "delete” | RPC operation Default value: merge |
| vlan-group-config | M | Path-only node, has no configurable value. VLAN related configuration that is part of the physical Ethernet interface. | |
| vlan-ranges | O | Type definition representing a range of single-tagged VLANs. A range is specified as x-y where x and y are valid VLAN IDs (1 <= vlan-id <= 4094). The range is assumed to be inclusive, such that any VLAN-ID matching x <= VLAN-ID <= y falls within the range. If there is more than one range, use the expression x1-y1,x2-y2 | Ranges of VLAN IDs, e.g. 100-200,300-400 |
| tagging-mode | O | ”tagged" "untagged” | Specifies the type of interface as a vlan member Default value: tagged |
| untagged-enable | O | ”true" "false” | Specifies whether to strip vlan tag when interface is joined to vlan in tagging mode Default value: False |
Config Port Group
Section titled “Config Port Group”Tree Diagram
module: asternos-interfaces
rpcs: +---x config-port-group +---w input +---w interfaces interface-ids +---w operation? rpc-operation-type +---w admin-status? boolean +---w ethernet-config | +---w startup-delay? uint16 | +---w port-speed? identityref | +---w auto-negotiate? boolean +---w vlan-group-config | +---w vlan-ranges? vlan-range | +---w tagging-mode? enumeration | +---w untagged-enable? boolean +---w link-flapping | +---w enabled? boolean | +---w action? enumeration | +---w interval? uint16 | +---w threshold? uint16 +---w lldp | +---w status? enumeration | +---w vid? uint32 | +---w vlan-type? enumeration | +---w priority? uint32 | +---w dscp? uint32 +---w monitor-link | +---w name? string | +---w mode enumeration +---w poe | +---w enable-mode? enumeration | +---w delay? uint16 | +---w priority? enumeration | +---w max-power? enumeration | +---w legacy-detect? boolean | +---w power-off-time-range? -> /time-range:time-ranges/time-range/name +---w poe-pd-alive-check | +---w config | | +---w mode? enumeration | | +---w pd-ip? inet:ip-address-no-zone | | +---w delay? uint16 | | +---w interval? uint16 | | +---w err-threshold? uint8 | | +---w action? enumeration | | +---w reboot-interval? uint16 | +---w state | +---w err-count? uint32 | +---w alive? boolean | +---w last-ping-time? uint64 +---w qos-map | +---w dscp-tc-map-name? string | +---w dot1p-tc-map-name? string | +---w mpls-exp-tc-map-name? string | +---w tc-dscp-map-name? string | +---w tc-dot1p-map-name? string | +---w tc-mpls-exp-map-name? string +---w ptp +---w instance-number uint32 +---w port-ds +---w log-announce-interval? int8 +---w announce-receipt-timeout? uint8 +---w log-sync-interval? int8 +---w log-min-delay-req-interval? int8 +---w log-min-pdelay-req-interval? int8 +---w asymmetry-correction? int32 +---w dscp? uint8 +---w port-state? af-ptp-types:port-state-enumeration +---w port-enable? boolean +---w port-number? uint16 +---w unicast-master-table* [address] | +---w address inet:ip-address-no-zone +---w source-ip-address? inet:ip-address-no-zone +---w ptp-vlan? cmn:vlan-name +---w priority? uint8Table of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| config-port-group | O | ||
| interfaces | M | None | Port group interfaces on the device, eg: 1-3,5,7 |
| operation | O | ”create" "merge" "delete” | RPC operation Default value: merge |
| admin-status | O | ”true" "false” | This leaf contains the configured, desired state of the interface. |
| ethernet-config | M | Path-only node, has no configurable value. | |
| startup-delay | O | 0..600 | when fisrt admin up, delay few seconds to wait hardware or software initdone |
| port-speed | O | ”SPEED_10M" "SPEED_10G" "SPEED_100M" "SPEED_2_5G" "SPEED_25G" "SPEED_40G" "SPEED_1G" "SPEED_100G” | When auto-negotiate is TRUE, this optionally sets the port-speed mode that will be advertised to the peer for negotiation. If unspecified, it is expected that the interface will select the highest speed available based on negotiation. When auto-negotiate is set to FALSE, sets the link speed to a fixed value — supported values are defined by PORT_SPEED identities |
| auto-negotiate | O | ”true" "false” | Set interface speed auto negotiation. Default value: False |
| vlan-group-config | M | Path-only node, has no configurable value. VLAN related configuration that is part of the physical Ethernet interface. | |
| vlan-ranges | O | Type definition representing a range of single-tagged VLANs. A range is specified as x-y where x and y are valid VLAN IDs (1 <= vlan-id <= 4094). The range is assumed to be inclusive, such that any VLAN-ID matching x <= VLAN-ID <= y falls within the range. If there is more than one range, use the expression x1-y1,x2-y2 | Ranges of VLAN IDs, e.g. 100-200,300-400 |
| tagging-mode | O | ”tagged" "untagged” | Specifies the type of interface as a vlan member Default value: tagged |
| untagged-enable | O | ”true" "false” | Specifies whether to strip vlan tag when interface is joined to vlan in tagging mode Default value: False |
| link-flapping | M | Path-only node, has no configurable value. Interface link flapping detection configuration. | |
| enabled | O | ”true" "false” | Enable link flapping detection. |
| action | O | ”error-down” | Link flapping action. |
| interval | O | 5..60 | Link flapping monitoring period. Default value: 10 |
| threshold | O | 5..30 | Frequent UP/DOWN events threshold count. Default value: 5 |
| lldp | M | Path-only node, has no configurable value. | |
| status | O | ”tx-only" "rx-only" "rx-and-tx" "disabled” | Administrative status of the local LLDP agent. Default value: rx-and-tx |
| vid | O | 1..4094 | VLAN ID to advertise. |
| vlan-type | O | ”tagged" "untagged” | Set tagged/untagged flag. Default value: untagged |
| priority | O | 0..7 | MED policy priority. Default value: 0 |
| dscp | O | 0..63 | DSCP value to advertise. Default value: 0 |
| monitor-link | M | Path-only node, has no configurable value. monitor link function of port group. | |
| name | O | string | Name of the monitor link group |
| mode | M | ”uplink" "downlink” | Physical ports can be added to the Monitor link group in the uplink or downlink mode. When uplink port is up, the downlink port will be up in delay time. When uplink port is down, the downlink port will be down at once |
| poe | M | Path-only node, has no configurable value. poe function of interface. | |
| enable-mode | O | ”disable" "enable" "high-inrush" "force” | The poe enable mode of interface. enable: port POE enable. high_inrush: port POE enable with ignored inrush check. At the end of port power up flow, ILIM state is ignored and the port will continue to regular ON state. force: port POE enable withh force power.To supply power to non-compliant PDs that would otherwise be rejected by the standard handshake. Force power mode presents a significant risk of damage to legacy non-PoE devices if connected, as it removes the intrinsic safety protection. It should be enabled only on ports connected to known PoE-capable equipment. Default value: disable |
| delay | O | 0..3600 | This command is used to delay the activation of Power over Etthernet (POE) power supply on an interface based on actual usage requirements. When the uplink link state stabilizes, andthe protocols are running correctly, PoE power is supplied to the connected POE devices. This delay mechanism is usefulfor ensuring that PoE devices receive power only when the network is stable and ready to support them. |
| priority | O | ”low" "high" "critical” | Set poe power supply priority of this interface. |
| max-power | O | ”15w" "30w" "30w-at" "60w" "90w” | Set Maximum poe power supply, WARNING: not support 90w currently. |
| legacy-detect | O | ”true" "false” | Set poe legacy detection Default value: False |
| power-off-time-range | O | → leafref | Set poe power-off period rules. |
| poe-pd-alive-check | M | Path-only node, has no configurable value. | |
| config | M | Path-only node, has no configurable value. poe pd alive check configuration of interface. | |
| mode | O | ”disable" "enable” | Enabled or disabled poe pd alive check functions for port. Default value: disable |
| pd-ip | O | inet:ip-address-no-zone | The ip address of pd device for alive check. |
| delay | O | 5..300 | The delay time for pd alive check after POE power up. Default value: 60 |
| interval | O | 10..300 | The time duration between two pd alive check packets. Default value: 30 |
| err-threshold | O | 1..5 | The threshold of continuous pd alive check failure. Default value: 3 |
| action | O | ”reboot" "alarm” | The action when pd alive check failure reaches the threshold. reboot: cycle poe power supply. alarm: alarm on syslog. Default value: alarm |
| reboot-interval | O | 1..180 | The interval time between two pd power cycle actions. Default value: 10 |
| state | M | Path-only node, has no configurable value. poe pd alive check status. | |
| err-count | RO | integer | The current failed counts of pd alive check. It will be reset after POE cycle |
| alive | RO | ”true" "false” | The alive status of PD devices. Default value: False |
| last-ping-time | RO | integer | The time for last PD alivecheck. It contains the seconds since system power up |
| qos-map | M | Path-only node, has no configurable value. | |
| dscp-tc-map-name | O | string | DSCP to TC map name. |
| dot1p-tc-map-name | O | string | Dot1p to TC map name. |
| mpls-exp-tc-map-name | O | string | MPLS exp to TC map name. |
| tc-dscp-map-name | O | string | TC to DSCP map name. |
| tc-dot1p-map-name | O | string | TC to Dot1p map name. |
| tc-mpls-exp-map-name | O | string | TC to MPLS exp map name. |
| ptp | M | Path-only node, has no configurable value. PTP port configuration for port-group | |
| instance-number | M | integer | PTP instance number |
| port-ds | M | Path-only node, has no configurable value. PTP port-ds configuration data | |
| log-announce-interval | O | -3..4 | The base-2 logarithm of the mean announceInterval (mean time interval between successive Announce messages). |
| announce-receipt-timeout | O | integer | The number of announceIntervals that have to pass without receipt of an Announce message before the occurrence of the event ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES. |
| log-sync-interval | O | integer | The base-2 logarithm of the mean SyncInterval for multicast messages. |
| log-min-delay-req-interval | O | integer | The base-2 logarithm of the minDelayReqInterval. |
| log-min-pdelay-req-interval | O | integer | The base-2 logarithm of the minPdelayReqInterval. |
| asymmetry-correction | O | -100000000..100000000 | Asymmetrical delay correction value on the interface. |
| dscp | O | 0..63 | DSCP of ptp packets sent from the interface. |
| port-state | O | af-ptp-types:port-state-enumeration | Current state associated with the port. Default value: slave |
| port-enable | O | ”true" "false” | Indicates if the PTP Port is enabled for PTP operation. |
| port-number | RO | integer | The port-number is allocated by internal process. |
| unicast-master-table | M | Path-only node, has no configurable value. The list of master ip address for this instance. | |
| address | O | inet:ip-address-no-zone | The master ip address. |
| source-ip-address | O | inet:ip-address-no-zone | The source ip address of ptp packet. |
| ptp-vlan | O | cmn:vlan-name | interface operating over specific VLAN. |
| priority | O | 1..255 | The priority of the PTP Port. Default value: 128 |
Show Bandwidth Util Threshold Warn
Section titled “Show Bandwidth Util Threshold Warn”Tree Diagram
module: asternos-ports
augment /if:interfaces/if:interface: +--rw ethernet-config +--rw bandwidth-util-warn +--rw l2-protocol-control +--rw link-flapping
rpcs: +---x show-bandwidth-util-threshold-warn +---w input | +---w interface-name? cmn:ethernet-port-name +--ro output +--ro data +--ro threshold* [] +--ro interface-name? cmn:ethernet-port-name +--ro rx-alert-threshold? uint32 +--ro rx-resume-threshold? uint32 +--ro tx-alert-threshold? uint32 +--ro tx-resume-threshold? uint32Table of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| show-bandwidth-util-threshold-warn | O | ||
| interface-name | O | cmn:ethernet-port-name | |
| data | M | Path-only node, has no configurable value. | |
| threshold | M | Path-only node, has no configurable value. | |
| interface-name | O | cmn:ethernet-port-name | |
| rx-alert-threshold | O | integer | |
| rx-resume-threshold | O | integer | |
| tx-alert-threshold | O | integer | |
| tx-resume-threshold | O | integer |
Show Counters Interface
Section titled “Show Counters Interface”Tree Diagram
module: asternos-interfaces
rpcs: +---x show-counters-interface +---w input | +---w name? string | +---w errors-only? boolean | +---w rates-only? boolean | +---w raw-stats? boolean | +---w period? uint8 | +---w all? boolean | +---w detail? boolean | +---w json? boolean +--ro output +--ro data? <anydata>Table of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| show-counters-interface | O | ||
| name | O | None | The name of the interface. |
| errors-only | O | ”true" "false” | Display interface errors. |
| rates-only | O | ”true" "false” | Display interface rates. |
| raw-stats | O | ”true" "false” | Raw stats (unmodified output of netstat). |
| period | O | 0..100 | Display stats over a specified period (in seconds), default=0. |
| all | O | ”true" "false” | Display all the stats counters. |
| detail | O | ”true" "false” | Display detailed statistics. |
| json | O | ”true" "false” | Display in JSON format. |
| data | O | A table that shows counter of interfaces |
Show Interface Port
Section titled “Show Interface Port”Tree Diagram
module: asternos-interfaces
rpcs: +---x show-interface-port +---w input | +---w port union +--ro output +--ro data? <anydata>Table of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| show-interface-port | O | ||
| port | M | Ethernet name | all - show all ethernet port. interface name - show specified port. |
| data | O | The result string of port. |
Show Interface Summary
Section titled “Show Interface Summary”Tree Diagram
module: asternos-interfaces
rpcs: +---x show-interface-summary +--ro output +--ro data? <anydata>Table of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| show-interface-summary | O | ||
| data | O | A table that shows information of all Interface |
Show Interface Urpf
Section titled “Show Interface Urpf”Tree Diagram
module: asternos-interfaces
rpcs: +---x show-interface-urpf +--ro output +--ro data? <anydata>Table of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| show-interface-urpf | O | ||
| data | O | A table that shows urpf mode of all Interface |
Show Ip Interface
Section titled “Show Ip Interface”Tree Diagram
module: asternos-interfaces
rpcs: +---x show-ip-interface +--ro output +--ro data? <anydata>Table of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| show-ip-interface | O | ||
| data | O | A table that shows information of all Interface with IPv4 address |
Show Ipv4 Neighbor Summary
Section titled “Show Ipv4 Neighbor Summary”Tree Diagram
module: asternos-ip
augment /if:interfaces/if:interface: +--rw ipv4 +--rw ipv6
rpcs: +---x show-ipv4-neighbor-summary +--ro output +--ro data? <anydata>Table of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| show-ipv4-neighbor-summary | O | ||
| data | O | Dispaly summary info of IPv4 neighbors. |
Show Ipv6 Interface
Section titled “Show Ipv6 Interface”Tree Diagram
module: asternos-interfaces
rpcs: +---x show-ipv6-interface +--ro output +--ro data? <anydata>Table of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| show-ipv6-interface | O | ||
| data | O | A table that shows information of all Interface with IPv6 address |
Show Ipv6 Neighbor Summary
Section titled “Show Ipv6 Neighbor Summary”Tree Diagram
module: asternos-ip
augment /if:interfaces/if:interface: +--rw ipv4 +--rw ipv6
rpcs: +---x show-ipv6-neighbor-summary +---w input | +---w ip? inet:ipv6-address-no-zone | +---w interface? union +--ro output +--ro data? <anydata>Table of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| show-ipv6-neighbor-summary | O | ||
| ip | O | inet:ipv6-address-no-zone | The IPv6 address of the neighbor node. |
| interface | O | Ethernet name → leafref | The name of the interface needs to show IPv6 neighbors. |
| data | O | Dispaly summary info of IPv6 neighbors. |
Show Link Aggregation Summary
Section titled “Show Link Aggregation Summary”Tree Diagram
module: asternos-portchannels
rpcs: +---x show-link-aggregation-summary +--ro output +--ro data? <anydata>Table of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| show-link-aggregation-summary | O | ||
| data | O | A table that shows information of all link-aggregation |
Show Sub Interface
Section titled “Show Sub Interface”Tree Diagram
module: asternos-interfaces
rpcs: +---x show-sub-interface +---w input | +---w interface? string +--ro output +--ro data? <anydata>Table of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| show-sub-interface | O | ||
| interface | O | None | The name of the ethernet or PortChannel sub-interface. |
| data | O | A table that shows information of sub-ethernet interface |