Skip to content
This repository has been archived by the owner on Apr 12, 2022. It is now read-only.

Latest commit

 

History

History
116 lines (95 loc) · 3.29 KB

File metadata and controls

116 lines (95 loc) · 3.29 KB

Ethernet Virtual Private Network (EVPN)

URL

frinx-evpn:evpn

OPENCONFIG YANG

YANG models

{
    "frinx-evpn:evpn": {
        "config": {
            "enabled": {{evpn_enabled}},
            "cost-out": {{cost_out}},
            "startup-cost-in": {{startup_cost_in}}
        },

        "groups": {
            "group": [
                {
                    "id": {{evpn_group_id}},
                    "config": {
                        "id": {{evpn_group_id}}
                    },
                    "core-interfaces": {
                        "interface": [
                            {
                                "name": "{{evpn_core_if_name}}",
                                "config": {
                                    "name": "{{evpn_core_if_name}}"
                                }
                            }
                        ]
                    }
                }
            ]
        },

        "interfaces": {
            "interface": [
                "name": "{{evpn_if_name}}",
                "config": {
                    "name": "{{evpn_if_name}}"
                },
                "ethernet-segment": {
                    "config": {
                        "identifier": "{{ethernet_segment_id}}",
                        "load-balancing-mode": "{{ethernet_segment_lb_mode}}",
                        "bgp-route-target": "{{bgp_route_target}}"
                    }
                },
                "core-isolation-group": {
                    "config": {
                        "id": {{evpn_isolation_group_id}}
                    }
                }
            ]
        }
    }
}

OS Configuration Commands

Cisco IOS XR 6.6.1 (via NetConf)

CLI

evpn
 group {{evpn_group_id}}
  core interface Bundle-Ether {{evpn_core_if_id}}
 interface Bundle-Ether {{evpn_if_id}}
  ethernet-segment
   identifier type 0 {{ethernet_segment_id}}
   load-balancing-mode {{ethernet_segment_lb_mode}}
   bgp route-target {{bgp_route_target}}
  core-isolation-group {{evpn_isolation_group_id}}

evpn is a conversion of {{evpn_enabled}} set to true no evpn is a conversion of {{evpn_enabled}} set to false
{{evpn_core_if_id}} is parsed from {{evpn_core_if_name}}
example {{evpn_core_if_name}} is Bundle-Ether100 -> {{evpn_core_if_id}} is 100
{{evpn_if_id}} is parsed from {{evpn_if_name}}
Bundle-Ether is a conversion of {{evpn_core_if_type}} set to "iana-if-type:ieee8023adLag"
mode port-active is a conversion of {{ethernet_segment_lb_mode}} set to "frinx-es-lb-mode:PORT-ACTIVE"
mode single-active is a conversion of {{ethernet_segment_lb_mode}} set to "frinx-es-lb-mode:SINGLE-ACTIVE"

Unit

Link to github : xr-unit

Cisco IOS XR 6.6.1 (no NetConf)

CLI

evpn
 cost-out|no cost-out
 startup-cost-in {{startup_cost_in}}

evpn is a conversion of {{evpn_enabled}} set true
no evpn is a conversion of {{evpn_enabled}} set false
cost-out is a conversion of {{cost_out}} set true
no cost-out is a conversion of {{cost_out}} set false or null

Unit

Link to github : xr-unit