Junos RPC YANG module for evpn command(s)
Version: 2019-01-01
module junos-ex-rpc-evpn { yang-version 1; namespace "http://yang.juniper.net/junos-ex/rpc/evpn"; prefix evpn; import junos-common-types { prefix jt; revision-date "2019-01-01"; } organization "Juniper Networks, Inc."; contact "yang-support@juniper.net"; description "Junos RPC YANG module for evpn command(s)"; revision "2019-01-01" { description "Junos: 21.3R1.9"; } rpc get-evpn-instance-information { description "Show EVPN instance information"; input { choice daemon-select { leaf logical-system { type string; description "Name of logical system, or 'all'"; } } // choice daemon-select leaf instance-name { type string; default "all"; description "Name of EVPN instance"; } leaf neighbor { type jt:ipaddr; description "Address of EVPN neighbor"; } leaf esi { type string; description "Ethernet segment identifier"; } leaf verbosity { type enumeration { enum "brief" { value 0; description "Display brief version of output"; } enum "extensive" { value 1; description "Display extensive version of output"; } enum "designated-forwarder" { value 2; description "Display only designated forwarder information"; } enum "backup-forwarder" { value 3; description "Display only backup forwarder information"; } enum "esi-info" { value 4; description "Display only ESI information"; } enum "neighbor-info" { value 5; description "Display only neighbor information"; } } } leaf get-evpn-instance-dci-information { type empty; description "Display dci information"; } } output { choice output_c { leaf output { type string; } anyxml evpn-instance-information { } anyxml multi-routing-engine-results { } } // choice output_c } } // rpc get-evpn-instance-information rpc get-evpn-database-information { description "Show EVPN internal MAC database"; input { choice daemon-select { leaf logical-system { type string; description "Name of logical system, or 'all'"; } } // choice daemon-select leaf mac-address { type jt:mac-addr; description "Display a specifc MAC address"; } leaf instance { type string; description "Display MAC address from a specific EVPN instance"; } leaf l2-domain-id { type union { type string { pattern "<.*>|$.*"; } type int32 { range "1 .. 16777214"; } } description "Display MAC address with a specific VLAN or VNI or ISID"; } leaf esi { type string; description "Ethernet segment identifier"; } choice origin-choice { leaf neighbor { type jt:ipaddr; description "Display MAC address learned from a specific neighbor"; } leaf interface { type string; description "Display MAC address learned from a specific interface"; } leaf origin { type enumeration { enum "local" { value 0; description "Display local MAC address"; } enum "remote" { value 1; description "Display remote MAC address"; } enum "dci-remote" { value 2; description "Display MAC addresses received from DCI"; } } description "Display MAC address with a specific origin"; } } // choice origin-choice leaf state { type enumeration { enum "default-gateway" { value 0; description "Display default gateway MAC address"; } enum "static" { value 1; description "Display static MAC address"; } enum "pinned" { value 2; description "Display pinned MAC address"; } enum "duplicate" { value 3; description "Display duplicate MAC address"; } enum "dci-adv" { value 4; description "Display MAC advertised to DCI"; } enum "dc-adv" { value 5; description "Display MAC advertised to DC"; } } description "Display MAC address with a specific state"; } leaf verbosity { type enumeration { enum "extensive" { value 0; description "Display extensive version of output"; } } } } output { choice output_c { leaf output { type string; } anyxml evpn-database-information { } anyxml multi-routing-engine-results { } } // choice output_c } } // rpc get-evpn-database-information rpc get-evpn-p2mp-information { description "Show EVPN p2mp information"; input { choice daemon-select { leaf logical-system { type string; description "Name of logical system, or 'all'"; } } // choice daemon-select leaf instance { type string; description "Display p2mp information for a specific EVPN instance"; } leaf verbosity { type enumeration { enum "extensive" { value 0; description "Display extensive version of output"; } } } } output { choice output_c { leaf output { type string; } anyxml evpn-p2mp-information { } anyxml multi-routing-engine-results { } } // choice output_c } } // rpc get-evpn-p2mp-information rpc get-evpn-l3-context-information { description "Show EVPN L3 context information"; input { choice daemon-select { leaf logical-system { type string; description "Name of logical system, or 'all'"; } } // choice daemon-select leaf l3-context-name { type string; default "all"; description "Name of EVPN L3 context"; } leaf verbosity { type enumeration { enum "brief" { value 0; description "Display brief version of output"; } enum "extensive" { value 1; description "Display extensive version of output"; } } } } output { choice output_c { leaf output { type string; } anyxml evpn-l3-context-information { } anyxml multi-routing-engine-results { } } // choice output_c } } // rpc get-evpn-l3-context-information rpc get-evpn-ip-prefix-database-information { description "Show EVPN internal IP prefix database"; input { choice daemon-select { leaf logical-system { type string; description "Name of logical system, or 'all'"; } } // choice daemon-select leaf l3-context { type string; description "Display IP prefix from a specific EVPN L3 context"; } leaf family { type enumeration { enum "inet" { value 0; description "Display IPv4 prefixes"; } enum "inet6" { value 1; description "Display IPv6 prefixes"; } } description "Display IP prefix with a specific address family"; } leaf direction { type enumeration { enum "imported" { value 0; description "Display imported EVPN IP prefixes"; } enum "exported" { value 1; description "Display exported IP prefixes"; } } description "Display IP prefix with a specific import/export direction"; } leaf prefix { type jt:ipprefix; description "Display a specifc IP prefix"; } leaf ethernet-tag { type union { type string { pattern "<.*>|$.*"; } type int32 { range "0 .. 16777214"; } } description "Display IP prefix with a specific ethernet tag"; } leaf gateway { type jt:ipaddr; description "Display IP prefix with a specific overlay gateway address"; } leaf esi { type string; description "Display IP prefix with a specific overlay ESI"; } leaf nexthop { type jt:ipaddr; description "Display IP prefix with a specific underlay nexthop"; } leaf verbosity { type enumeration { enum "extensive" { value 0; description "Display extensive version of output"; } } } } output { choice output_c { leaf output { type string; } anyxml evpn-ip-prefix-database-information { } anyxml multi-routing-engine-results { } } // choice output_c } } // rpc get-evpn-ip-prefix-database-information rpc get-evpn-multicast-snooping-status { description "Show general status"; input { leaf instance { type string; description "Display for a specific EVPN instance"; } leaf l2-domain-id { type union { type string { pattern "<.*>|$.*"; } type int32 { range "1 .. 16777214"; } } description "Display for a specific VLAN or VNI or ISID"; } leaf verbosity { type enumeration { enum "extensive" { value 0; description "Display extensive version of output"; } } } } output { choice output_c { leaf output { type string; } anyxml evpn-multicast-snooping-status { } anyxml multi-routing-engine-results { } } // choice output_c } } // rpc get-evpn-multicast-snooping-status rpc get-evpn-multicast-snooping-ar-nexthops-data { description "Show next-hops information"; input { leaf instance { type string; description "Display for a specific EVPN instance"; } leaf l2-domain-id { type union { type string { pattern "<.*>|$.*"; } type int32 { range "1 .. 16777214"; } } description "Display for a specific VLAN or VNI or ISID"; } leaf index { type union { type uint32; type string { pattern "<.*>|$.*"; } } description "Display for a specific nexthop id"; } } output { choice output_c { leaf output { type string; } anyxml evpn-multicast-snooping-ar-nexthops-data { } anyxml multi-routing-engine-results { } } // choice output_c } } // rpc get-evpn-multicast-snooping-ar-nexthops-data rpc get-evpn-multicast-snooping-ar-mh-peers-data { description "Show multi-homed peers"; input { leaf instance { type string; description "Display for a specific EVPN instance"; } leaf verbosity { type enumeration { enum "extensive" { value 0; description "Display extensive version of output"; } } } } output { choice output_c { leaf output { type string; } anyxml evpn-multicast-snooping-ar-mh-peers-data { } anyxml multi-routing-engine-results { } } // choice output_c } } // rpc get-evpn-multicast-snooping-ar-mh-peers-data rpc get-evpn-multicast-snooping-ar-replicators-data { description "Show replicators"; input { leaf instance { type string; description "Display for a specific EVPN instance"; } leaf l2-domain-id { type union { type string { pattern "<.*>|$.*"; } type int32 { range "1 .. 16777214"; } } description "Display for a specific VLAN or VNI or ISID"; } } output { choice output_c { leaf output { type string; } anyxml evpn-multicast-snooping-ar-replicators-data { } anyxml multi-routing-engine-results { } } // choice output_c } } // rpc get-evpn-multicast-snooping-ar-replicators-data rpc get-evpn-multicast-next-hops-information { description "Show EVPN multicast-snooping nexthops table"; input { leaf verbosity_level { type enumeration { enum "terse" { value 0; description "Display terse output"; } enum "brief" { value 1; description "Display brief output (default)"; } enum "detail" { value 2; description "Display detailed output"; } } default "brief"; } leaf identifier { type union { type uint32; type string { pattern "<.*>|$.*"; } } description "ID of next hop"; } } output { choice output_c { leaf output { type string; } anyxml multicast-next-hops-information { } anyxml multi-routing-engine-results { } } // choice output_c } } // rpc get-evpn-multicast-next-hops-information rpc get-evpn-igmp-snooping-proxy-information { description "Show EVPN igmp snooping proxy"; input { choice daemon-select { leaf logical-system { type string; description "Name of logical system, or 'all'"; } } // choice daemon-select leaf instance { type string; description "Display for a specific EVPN instance"; } leaf l2-domain-id { type union { type string { pattern "<.*>|$.*"; } type int32 { range "1 .. 16777214"; } } description "Display for a specific VLAN or VNI or ISID"; } leaf group { type jt:ipaddr; description "Group address"; } leaf verbosity { type enumeration { enum "extensive" { value 0; description "Display extensive version of output"; } } } } output { choice output_c { leaf output { type string; } anyxml evpn-igmp-snooping-information { } anyxml multi-routing-engine-results { } } // choice output_c } } // rpc get-evpn-igmp-snooping-proxy-information rpc get-evpn-igmp-snooping-database-information { description "Show EVPN igmp snooping database"; input { choice daemon-select { leaf logical-system { type string; description "Name of logical system, or 'all'"; } } // choice daemon-select leaf instance { type string; description "Display for a specific EVPN instance"; } leaf l2-domain-id { type union { type string { pattern "<.*>|$.*"; } type int32 { range "1 .. 16777214"; } } description "Display for a specific VLAN or VNI or ISID"; } leaf esi { type string; description "Ethernet segment identifier"; } leaf group { type jt:ipaddr; description "Group address"; } leaf interface { type string; description "Display for a specific interface"; } leaf verbosity { type enumeration { enum "extensive" { value 0; description "Display extensive version of output"; } } } } output { choice output_c { leaf output { type string; } anyxml evpn-igmp-snooping-information { } anyxml multi-routing-engine-results { } } // choice output_c } } // rpc get-evpn-igmp-snooping-database-information rpc get-evpn-mld-snooping-proxy-information { description "Show EVPN mld snooping proxy"; input { leaf instance { type string; description "Display for a specific EVPN instance"; } leaf l2-domain-id { type union { type string { pattern "<.*>|$.*"; } type int32 { range "1 .. 16777214"; } } description "Display for a specific VLAN or VNI or ISID"; } leaf group { type jt:ipaddr; description "Group address"; } leaf verbosity { type enumeration { enum "extensive" { value 0; description "Display extensive version of output"; } } } } output { choice output_c { leaf output { type string; } anyxml evpn-mld-snooping-information { } anyxml multi-routing-engine-results { } } // choice output_c } } // rpc get-evpn-mld-snooping-proxy-information rpc get-evpn-mld-snooping-database-information { description "Show EVPN mld snooping database"; input { leaf instance { type string; description "Display for a specific EVPN instance"; } leaf l2-domain-id { type union { type string { pattern "<.*>|$.*"; } type int32 { range "1 .. 16777214"; } } description "Display for a specific VLAN or VNI or ISID"; } leaf esi { type string; description "Ethernet segment identifier"; } leaf group { type jt:ipaddr; description "Group address"; } leaf interface { type string; description "Display for a specific interface"; } leaf verbosity { type enumeration { enum "extensive" { value 0; description "Display extensive version of output"; } } } } output { choice output_c { leaf output { type string; } anyxml evpn-mld-snooping-information { } anyxml multi-routing-engine-results { } } // choice output_c } } // rpc get-evpn-mld-snooping-database-information rpc get-evpn-oism-information { description "Show EVPN OISM information"; input { choice daemon-select { leaf logical-system { type string; description "Name of logical system, or 'all'"; } } // choice daemon-select leaf l3-context { type string; description "Name of specific EVPN L3 context"; } leaf verbosity { type enumeration { enum "brief" { value 0; description "Display brief version of output"; } enum "extensive" { value 1; description "Display extensive version of output"; } } } } output { choice output_c { leaf output { type string; } anyxml evpn-oism-information { } anyxml multi-routing-engine-results { } } // choice output_c } } // rpc get-evpn-oism-information rpc get-evpn-vpws-information { description "Show EVPN VPWS instance information"; input { choice daemon-select { leaf logical-system { type string; description "Name of logical system, or 'all'"; } } // choice daemon-select leaf instance-name { type string; default "all"; description "Name of EVPN VPWS instance"; } } output { choice output_c { leaf output { type string; } anyxml evpn-vpws-information { } anyxml multi-routing-engine-results { } } // choice output_c } } // rpc get-evpn-vpws-information rpc get-evpn-mac-ip-table { description "Show IP table for EVPN instances"; input { leaf logical-system { type string; default "all"; description "Name of logical system, or 'all'"; } leaf instance { type string; default "all"; description "Display information for a specified instance"; } leaf address { type jt:mac-addr; default "all"; description "MAC address"; } leaf show-choice { type enumeration { enum "detail" { value 0; description "Display detailed output"; } enum "brief" { value 1; description "Display brief output"; } enum "extensive" { value 2; description "Display extensive output"; } enum "count" { value 3; description "Display count only"; } } default "brief"; } } output { choice output_c { leaf output { type string; } anyxml l2ald-rtb-mac-ip-db { } anyxml multi-routing-engine-results { } } // choice output_c } } // rpc get-evpn-mac-ip-table rpc get-evpn-mac-ip-table-kernel { description "Entries present in kernel"; input { leaf verbosity { type enumeration { enum "detail" { value 0; description "Display detailed output"; } enum "brief" { value 1; description "Display brief output"; } enum "extensive" { value 2; description "Display extensive output"; } } default "brief"; } } output { choice output_c { leaf output { type string; } anyxml l2ald-rtb-mac-ip-kernel-db { } anyxml multi-routing-engine-results { } } // choice output_c } } // rpc get-evpn-mac-ip-table-kernel rpc get-evpn-mac-table { description "Show media access control table"; input { leaf instance { type string; default "all"; description "Display information for a specified vpls"; } leaf logical-system { type string; default "all"; description "Name of logical system, or 'all'"; } leaf vlan-id { type string; description "Display MAC address learned on a specified VLAN"; } leaf isid { type string; description "Display Information for specified ISID or all ISID(s)"; } leaf address { type jt:mac-addr; default "all"; description "MAC address"; } leaf show-choice { type enumeration { enum "detail" { value 0; description "Display detailed output"; } enum "brief" { value 1; description "Display brief output"; } enum "extensive" { value 2; description "Display extensive output"; } enum "count" { value 3; description "Display count only"; } enum "age" { value 4; description "Display age of a single mac-address"; } enum "summary" { value 5; description "Display summary output"; } } default "brief"; } } output { choice output_c { leaf output { type string; } anyxml l2ald-rtb-macdb { } anyxml multi-routing-engine-results { } } // choice output_c } } // rpc get-evpn-mac-table rpc get-evpn-interface-mac-table { description "Display MAC table for a specified interface"; input { choice interface-choice { leaf interface-name { type string; description "Name of interface for which to display table"; } leaf all { type empty; description "Display MAC table for all the interfaces"; } } // choice interface-choice leaf show-choice { type enumeration { enum "detail" { value 0; description "Display detailed output"; } enum "brief" { value 1; description "Display brief output"; } enum "extensive" { value 2; description "Display extensive output"; } enum "count" { value 3; description "Display count only"; } enum "age" { value 4; description "Display age of a single mac-address"; } enum "summary" { value 5; description "Display summary output"; } } default "brief"; } } output { choice output_c { leaf output { type string; } anyxml l2ald-interface-macdb { } anyxml multi-routing-engine-results { } } // choice output_c } } // rpc get-evpn-interface-mac-table rpc get-evpn-arp-table { description "Show ARP entries associated with MACs learned"; input { leaf logical-system { type string; default "all"; description "Name of logical system, or 'all'"; } leaf instance { type string; default "all"; description "Display information for a specified vpls"; } leaf address { type jt:mac-addr; default "all"; description "MAC address"; } leaf show-choice { type enumeration { enum "detail" { value 0; description "Display detailed output"; } enum "brief" { value 1; description "Display brief output"; } enum "extensive" { value 2; description "Display extensive output"; } enum "count" { value 3; description "Display count only"; } } default "brief"; } } output { choice output_c { leaf output { type string; } anyxml l2rtb-evpn-arp-db { } anyxml multi-routing-engine-results { } } // choice output_c } } // rpc get-evpn-arp-table rpc get-evpn-nd-table { description "Show ND entries associated with MACs learned"; input { leaf logical-system { type string; default "all"; description "Name of logical system, or 'all'"; } leaf instance { type string; default "all"; description "Display information for a specified vpls"; } leaf address { type jt:mac-addr; default "all"; description "MAC address"; } leaf show-choice { type enumeration { enum "detail" { value 0; description "Display detailed output"; } enum "brief" { value 1; description "Display brief output"; } enum "extensive" { value 2; description "Display extensive output"; } enum "count" { value 3; description "Display count only"; } } default "brief"; } } output { choice output_c { leaf output { type string; } anyxml l2rtb-evpn-nd-db { } anyxml multi-routing-engine-results { } } // choice output_c } } // rpc get-evpn-nd-table rpc get-evpn-peer-gateway-mac { description "Show MAC addresses installed as gateway MACs"; input { leaf instance { type string; default "all"; description "Display information for a specified instance"; } leaf address { type jt:mac-addr; default "all"; description "MAC address"; } } output { choice output_c { leaf output { type string; } anyxml l2rtb-peer-gateway-macdb { } anyxml multi-routing-engine-results { } } // choice output_c } } // rpc get-evpn-peer-gateway-mac rpc get-evpn-statistics-information { description "Show EVPN statistics"; input { leaf instance { type string; mandatory true; description "Name of EVPN instance"; } } output { choice output_c { leaf output { type string; } anyxml evpn-statistics-information { } anyxml multi-routing-engine-results { } } // choice output_c } } // rpc get-evpn-statistics-information } // module junos-ex-rpc-evpn
© 2023 YumaWorks, Inc. All rights reserved.