# Ethernet interface

# URL

frinx-openconfig-interfaces:interfaces/interface=

# OPENCONFIG YANG

YANG models

{
    "interface": [
        {
            "name": "",
            "config": {
                "type": "iana-if-type:ethernetCsmacd/iana-if-type:other",
                "name": "",
                "mtu": "",
                "description": "",
                "enabled": "",
                "tpid": "",
                "frinx-saos-if-extension:physical-type": "",
                "frinx-saos-if-extension:acceptable-frame-type": "",
                "frinx-saos-if-extension:vs-ingress-filter": "",
                "frinx-saos-if-extension:vlan-ethertype-policy": "",
                "frinx-saos-if-extension:ingress-to-egress-qmap": "",
                "frinx-saos-if-extension:forward-unlearned": "",
                "frinx-saos-if-extension:max-dynamic-macs": "",
                "frinx-cisco-if-extension:l2-protocols": [
                    ""
                ],
                "frinx-cisco-if-extension:storm-control": [
                    {
                        "address": "",
                        "level": ""
                    }
                ],
                "frinx-cisco-if-extension:lldp-transmit": "",
                "frinx-cisco-if-extension:lldp-receive": "",
                "frinx-cisco-if-extension:negotiation-auto": "",
                "frinx-cisco-if-extension:fhrp-minimum-delay": "",
                "frinx-cisco-if-extension:fhrp-reload-delay": "",
                "frinx-cisco-if-extension:cdp-enable": "",
                "frinx-cisco-if-extension:switchport-port_security-enable": "",
                "frinx-cisco-if-extension:switchport-port_security-maximum": "",
                "frinx-cisco-if-extension:switchport-port_security-violation": "",
                "frinx-cisco-if-extension:switchport-port_security-aging-type": "",
                "frinx-cisco-if-extension:switchport-port_security-aging-time": "",
                "frinx-cisco-if-extension:switchport-port_security-aging-static": "",
                "frinx-huawei-if-extension:flow-stat-interval": "",
                "frinx-huawei-if-extension:ip-binding-vpn-instance": "",
                "frinx-huawei-if-extension:trust-dscp": "",
            },
            "hold-time": {
                "config": {
                    "up": "",
                    "down": ""
                }
            },
            "subinterfaces": {
                "subinterface": [
                    {
                        "index": 0,
                        "config": {
                            "index": 0,
                        },
                        "frinx-openconfig-if-ip:ipv4": {
                            "config": {
                                "mtu": ""
                            },
                            "addresses": {
                                "address": [
                                    {
                                        "ip": "",
                                        "config": {
                                            "ip": "",
                                            "prefix-length": ""
                                        }
                                    }
                                ]
                            }
                        },
                        "frinx-openconfig-if-ip:ipv6": {
                            "addresses": {
                                "address": [
                                    {
                                        "ip": "",
                                        "config": {
                                            "ip": "",
                                            "prefix-length": ""
                                        }
                                    }
                                ]
                            },
                            "router-advertisement": {
                                "config": {
                                    "suppress": ""
                                }
                            }
                        }
                    },
                    {
                        "index": "",
                        "config": {
                            "index": "",
                            "description": "",
                            "frinx-juniper-if-extension:rpm-type": "",
                            "enabled": "",
                            "frinx-huawei-if-extension:traffic-policy": {
                                "traffic-name": "",
                                "direction": ""
                            },
                            "frinx-huawei-if-extension:dot1q-vlan-id": "",
                            "frinx-huawei-if-extension:traffic-filter": {
                                "acl-name": "",
                                "direction": ""
                            },
                            "frinx-huawei-if-extension:ip-binding-vpn-instance": "",
                        },
                        "frinx-openconfig-vlan:vlan": {
                            "config": {
                                "vlan-id": "",
                                "name": ""
                            }
                        },
                        "frinx-openconfig-if-ip:ipv4": {
                            "config": {
                                "mtu": ""
                            },
                            "addresses": {
                                "address": [
                                    {
                                        "ip": "",
                                        "config": {
                                            "ip": "",
                                            "prefix-length": ""
                                        }
                                    }
                                ]
                            }
                        },
                        "frinx-cisco-if-extension:statistics": {
                            "config": {
                                "load-interval": ""
                            }
                        }
                    }
                ]
            },
            "frinx-damping:damping": {
                "config": {
                    "enabled": "",
                    "half-life": "",
                    "reuse": "",
                    "suppress": "",
                    "max-suppress": ""
                }
            },
            "frinx-openconfig-if-ethernet:ethernet": {
                "config": {
                    "port-speed": "",
                    "frinx-openconfig-if-aggregate:aggregate-id": "",
                    "frinx-lacp-lag-member:lacp-mode": "",
                    "frinx-lacp-lag-member:interval": "",
                    "frinx-if-aggregate-extension:admin-key": ""
                },
                "frinx-openconfig-vlan:switched-vlan" : {
                    "config" : {
                        "interface-mode": "TRUNK",
                        "trunk-vlans": [
                            ""
                         ],
                         "native-vlan": ""
                    }
                }
            },
            "frinx-oam:cfm": {
                "mip": {
                    "level": [
                        {
                            "level": "",
                            "vlan": [
                                ""
                            ]
                        }
                    ]
                }
            },
            "frinx-cisco-if-extension:statistics": {
                "config": {
                    "load-interval": ""
                }
            },
            "frinx-saos-if-extension:cft-profile": {
                "config": {
                    "name": "",
                    "enabled": ""
                }
            },
            "frinx-cisco-if-extension:service-instances": {
                "service-instance": [
                    {
                        "id": "",
                        "config": {
                            "id": "",
                            "trunk": "",
                            "evc": ""
                        },
                        "bridge-domain": {
                            "value": "",
                            "group-number": ""
                        },
                        "frinx-cisco-if-extension:service-instance-l2protocol": {
                            "l2protocol": [
                                {
                                    "name": "",
                                    "config": {
                                        "protocol-type": "",
                                        "protocol": [
                                            ""
                                        ]
                                    }
                                    
                                }
                            ]
                        },
                        "encapsulation": {
                            "dot1q": [
                                ""
                            ],
                            "untagged": ""
                        },
                        "rewrite": {
                                "operation": "",
                                "type": ""
                            },
                    }
                ]
            }

        }
    ]
}

# OS Configuration Commands

# Cisco IOS Classic (15.2(4)S5) / XE (15.3(3)S2)

# CLI


interface 
 description 
 mtu 
 ip address  
 channel-group  mode 
 media-type  
 speed 
 shutdown | no shutdown
 switchport port-security | no switchport port-security
 switchport port-security maximum 
 switchport port-security violation 
 switchport port-security aging time 
 switchport port-security aging type 
 switchport port-security aging static | no switchport port-security aging static
 ethernet cfm mip level  vlan 
 l2protocol-tunnel 
 storm-control  level 
 lldp transmit | no lldp transmit
 lldp receive | no lldp receive
 negotiation auto | no negotiation auto
 cdp enable | no cdp enable

is a conversion of
no shutdown is a conversion of set true
shutdown is a conversion of set false
switchport port-security is a conversion of set true
no switchport port-security is a conversion of set false
can be "protect", "restrict" or "shutdown"
can be "absolute" or "inactivity"
switchport port-security aging static is a conversion of set true
no switchport port-security aging static is a conversion of set false
lldp transmit is a conversion of set true
no lldp transmit is a conversion of set false
lldp receive is a conversion of set true
no lldp receive is a conversion of set false
negotiation auto is a conversion of set true
no negotiation auto is a conversion of set false cdp enable is a conversion of set true
no cdp enable is a conversion of set false
is parsed from
example is Port-channel3 -> is 3
mode on is a conversion of set to frinx-openconfig-lacp:ON
can be "default" or "rj45" or "sfp"
can be "broadcast" or "multicast" or "unicast"


interface .
 ip address  

is conversion of

# Unit

Link to github : ios-unit

# Cisco IOS XE 15, 16, 17

# CLI


interface 
 description 
 mtu 
 ip address  
 channel-group  mode 
 media-type  
 speed 
 shutdown | no shutdown
 storm-control  level 
 lldp transmit | no lldp transmit
 lldp receive | no lldp receive
 negotiation auto | no negotiation auto
 fhrp delay minimum 
 fhrp delay reload 
 ethernet cfm mip level  vlan 
 service instance   ethernet 
  bridge-domain  split-horizon group 
  encapsulation  , dot1q 
  rewrite  
  l2protocol  

is a conversion of
no shutdown is a conversion of set true
shutdown is a conversion of set false
lldp transmit is a conversion of set true
no lldp transmit is a conversion of set false
lldp receive is a conversion of set true
no lldp receive is a conversion of set false negotiation auto is a conversion of set true
no negotiation auto is a conversion of set false is parsed from
example is Port-channel3 -> is 3
mode on is a conversion of set to frinx-openconfig-lacp:ON can be "default" or "rj45" or "sfp"
can be "broadcast" or "multicast" or "unicast"
service instance trunk ethernet is conversion of set true *service instance ethernet * is conversion of set false
*encapsulation untagged , dot1q * is conversion of set true
*encapsulation dot1q * is conversion of set false
can be "ingress" or "egress" can be "pop" or "push" or "translate" can be "tunnel" or "peer" or "forward"
can be "cdp" or "vtp" or "lacp" or "lldp" or "mmrp" or "mvrp" or "stp" or "RB" or "RC" or "RD" or "RF"

# Unit

Link to github : ios-xe-unit

# Cisco IOS XR 5.3.4

# CLI


interface 
 description 
 mtu 
 ipv4 address  
 ipv6 address /
 ipv6 nd suppress-ra
 dampening     | no dampening
 carrier-delay up  down  
 load-interval 
 bundle id  mode 
 lacp period short | no lacp period short
 shutdown | no shutdown

is parsed from
example is Bundle-Ether100 -> is 100

no shutdown is a conversion of set true
shutdown is a conversion of set false
is a conversion of
no dampening is a conversion of set false
lacp period short is a conversion of set to frinx-openconfig-lacp:FAST
no lacp period short is a conversion of set to frinx-openconfig-lacp:SLOW
if is not specified then command bundle id mode on is used
mode active is a conversion of set to frinx-openconfig-lacp:ACTIVE
mode passive is a conversion of set to frinx-openconfig-lacp:PASSIVE
ipv6 nd suppress-ra is a conversion of set true


interface .
 ipv4 address  

is conversion of

# Unit

Link to github : xr-unit

# Cisco IOS XR 6.2.3

# CLI


interface 
 description 
 dampening     | no dampening
 load-interval 
 bundle id  mode 
 carrier-delay up  down 
 lacp period short | no lacp period short
 shutdown | no shutdown

is parsed from
example is Bundle-Ether100 -> is 100

no shutdown is a conversion of set true
shutdown is a conversion of set false
no dampening is a conversion of set false
lacp period short is a conversion of set to frinx-openconfig-lacp:FAST
no lacp period short is a conversion of set to frinx-openconfig-lacp:SLOW
if is not specified then command bundle id mode on is used
mode active is a conversion of set to frinx-openconfig-lacp:ACTIVE
mode passive is a conversion of set to frinx-openconfig-lacp:PASSIVE


interface .
 ipv4 mtu 
 load-interval 

interface .
 description 
 ipv4 address  
 encapsulation dot1q 

is conversion of

# Cisco IOS XR 6.6.1

# CLI


interface 
 description 
 ipv4 address  
 ipv4 mtu 
 dampening     | no dampening
 load-interval 
 bundle id  mode 
 lacp period short | no lacp period short
 shutdown | no shutdown

is parsed from
example is Bundle-Ether100 -> is 100

no shutdown is a conversion of set true
shutdown is a conversion of set false
is a conversion of
no dampening is a conversion of set false
lacp period short is a conversion of set to frinx-openconfig-lacp:FAST
no lacp period short is a conversion of set to frinx-openconfig-lacp:SLOW
if is not specified then command bundle id mode on is used
mode active is a conversion of set to frinx-openconfig-lacp:ACTIVE
mode passive is a conversion of set to frinx-openconfig-lacp:PASSIVE


interface .
 description 
 ipv4 address  
 ipv4 mtu 
 load-interval 
 encapsulation dot1q 

is conversion of

# Unit

Link to github : xr-unit

# Junos 14.1X53-D40.8

# CLI


set interfaces  vlan-tagging
delete interfaces  disable | set interfaces  disable
set interfaces  unit 0 family inet address /

vlan-tagging is a conversion of set TPID_0X8100
delete interfaces disable is a conversion of set true
set interfaces disable is conversion of set false


set interfaces  unit  vlan-id 
set interfaces  unit  description 
set interfaces  unit  family inet address /
set interfaces  unit  disable
delete interfaces  unit  disable

set interfaces unit disable is conversion of set false
delete interfaces unit disable is a conversion of set true

# Unit

Link to github : junos-unit

# Junos 17.3R1.10

# CLI


set interfaces  description 
set interfaces  mtu 
set interfaces  unit 0 family inet address /
set interfaces  damping enable
set interfaces  damping half-life 
set interfaces  damping max-suppress 
set interfaces  damping reuse 
set interfaces  damping suppress 
set interfaces  hold-time up  down 
set interfaces  gigether-options 802.3ad 
set interfaces  aggregated-ether-options lacp 
set interfaces  aggregated-ether-options lacp periodic 
delete interfaces  disable | set interfaces  disable

is parsed from
example is ae100 -> is 100

delete interfaces disable is a conversion of set true
set interfaces disable is conversion of set false

# Unit

Link to github : junos-unit

# Junos 18.2R1-S2.1

# CLI


set interfaces  unit 0 family inet address /
delete interfaces  disable | set interfaces  disable

delete interfaces disable is a conversion of set true
set interfaces disable is conversion of set false
In the case of set interfaces ms-x/x/x, set iana-if-type:other instead of iana-if-type:ethernetCsmacd


set interfaces  unit  description 
set interfaces  unit  family inet address /
delete interfaces  unit  disable | set interfaces  unit  disable
set interfaces  unit  rpm 

delete interfaces unit disable is a conversion of set true
set interfaces unit disable is conversion of set false

# Unit

Link to github : junos-unit

# Brocade (V5.6.0fT163)

# CLI


tag-type  

interface 
  port-name 
  enable | disable

enable is a conversion of set true
disable is a conversion of set false

# Unit

Link to github : brocade-unit

# Huawei NE5000E (V800R009C10SPC310)

# CLI


interface 
 description                          
 set flow-stat interval                 
 ip binding vpn-instance               
 ip address  
 trust dscp

interface .         
 description      
 dot1q termination vid                  
 ip address     
 traffic-filter  acl name  
 traffic-policy  
 trust dscp

is conversion of ""
inbound, outbound is a conversions of "" trust dscp is a conversion of "" set true

# Unit

Link to github : huawei-unit

# Dasan NOS SFU.RR.5.6p5

# CLI

bridge
 vlan add br  tagged
 vlan add br  untagged
 lacp port  aggregator 
 lacp port admin-key  
 lacp port timeout  short | no lacp port timeout 
 jumbo-frame  
 port enable  | port disable 

is parsed from
example is Ethernet1/1 -> is 1/1

is parsed from
example is Bundle-Ether100 -> is 100

*port enable * is a conversion of set true
*port disable * is a conversion of set false
lacp port timeout short is a conversion of set to frinx-openconfig-lacp:FAST
no lacp port timeout short is a conversion of set to frinx-openconfig-lacp:SLOW

# Unit

Link to github : dasan-unit

# Ciena SAOS 6.14

# CLI

port
      set port  description 
      enable port  | port disable port 
      set port  mode 
      set port  max-frame-size 
      set port  vs-ingress-filter 
      set port  acceptable-frame-type 
      set port  ingress-to-egress-qmap 

flow access-control set port  forward-unlearned 
flow access-control set port  max-dynamic-macs 

*port enable port * is a conversion of set true
*port disable port * is a conversion of set false
can be "default" or "rj45" or "sfp"
vs-ingress-filter on is a conversion of set true
vs-ingress-filter off is a conversion of set false
can be "all", "tagged-only", "untagged-only"
can be "Default-RCOS" or "NNI-NNI"
forward-unlearned on is a conversion of set true
forward-unlearned off is a conversion of set false

vlan add vlan  port 

from usual range (max 4094)

virtual-circuit ethernet set port  vlan-ethertype-policy 

can be "all" or "vlan-tpid"

l2-cft set port  profile 
l2-cft enable port 
l2-cft disable port 

l2-cft enable port is a conversion of set to true
l2-cft disable port is a conversion of set to false

# Unit

Link to github : saos-unit