junos-nfx-rpc-l2-learning

Junos RPC YANG module for l2-learning command(s)

  • Version: 2019-01-01

    junos-nfx-rpc-l2-learning@2019-01-01


    
      module junos-nfx-rpc-l2-learning {
    
        yang-version 1;
    
        namespace
          "http://yang.juniper.net/junos-nfx/rpc/l2-learning";
    
        prefix l2-learning;
    
        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 l2-learning command(s)";
    
        revision "2019-01-01" {
          description "Junos: 21.3R1.9";
        }
    
    
        rpc get-l2-learning-interface-information {
          description "Show interface";
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml l2ald-iff-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-l2-learning-interface-information
    
        rpc get-l2-learning-global-mac-count {
          description
            "Show layer-2 global mac address count";
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml l2ald-global-macdb-count {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-l2-learning-global-mac-count
    
        rpc get-l2-learning-global-mac-ip-count {
          description
            "Show global MAC+IP bindings count";
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml l2ald-global-mac-ip-count {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-l2-learning-global-mac-ip-count
    
        rpc get-l2-learning-global-information {
          description
            "Show process-related information";
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml l2ald-global-configuration {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-l2-learning-global-information
    
        rpc get-l2-learning-routing-instances {
          description "Show routing instances";
          input {
            leaf instance-name {
              type string;
              default "all";
              description
                "Display information for a specified instance";
            }
    
            leaf bridge-domain {
              type string;
              default "all";
              description
                "Particular bridge-domain or 'all'";
            }
    
            leaf ifbd {
              type enumeration {
                enum "all" {
                  value 0;
                  description
                    "Display all IFBDs";
                }
              }
              description
                "Display information for ifbds under bd";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml l2ald-routing-table-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-l2-learning-routing-instances
    
        rpc get-l2-learning-provider-instance {
          description
            "Show provider instance (I-component)";
          input {
            leaf instance {
              type string;
              default "all";
              description
                "Display information for a specified instance";
            }
    
            leaf bridge-domain {
              type string;
              default "all";
              status deprecated;
              description
                "Display information for a specified bridge domain";
            }
    
            leaf bridge-domain-name {
              type string;
              description
                "Display information for a specified bridge domain";
            }
    
            leaf logical-system {
              type string;
              default "all";
              description
                "Name of logical system, or 'all'";
            }
    
            leaf isid {
              type string;
              description
                "Display Information for specified ISID or all ISID(s)";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml l2ald-pbn {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-l2-learning-provider-instance
    
        rpc get-l2-learning-backbone-instance {
          description
            "Show provider backbone instance (B-component)";
          input {
            leaf instance {
              type string;
              default "all";
              description
                "Display information for a specified instance";
            }
    
            leaf bridge-domain {
              type string;
              default "all";
              status deprecated;
              description
                "Display information for a specified bridge domain";
            }
    
            leaf bridge-domain-name {
              type string;
              description
                "Display information for a specified bridge domain";
            }
    
            leaf logical-system {
              type string;
              default "all";
              description
                "Name of logical system, or 'all'";
            }
    
            leaf isid {
              type string;
              description
                "Display Information for specified ISID or all ISID(s)";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml l2ald-pbbn {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-l2-learning-backbone-instance
    
        rpc get-l2-learning-remote-backbone-edge-bridges {
          description
            "Show remote backbone edge bridges in a PBBN network";
          input {
            leaf remote-beb-mac-address {
              type jt:mac-addr;
              default "all";
              description
                "Remote backbone edge bridge MAC address";
            }
    
            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";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml l2ald-rbeb-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-l2-learning-remote-backbone-edge-bridges
    
        rpc get-l2-learning-redundancy-groups {
          description "Show redundancy-groups";
          input {
            choice daemon-select {
              leaf logical-system {
                type string;
                description
                  "Name of logical system";
              }
            }  // choice daemon-select
    
            leaf redundancy-group-id {
              type union {
                type string {
                  pattern "<.*>|$.*";
                }
                type uint32 {
                  range "0 .. 4294967294";
                }
              }
              default "0";
              description
                "Display information for a specified RG";
            }
    
            leaf options {
              type enumeration {
                enum "remote-macs" {
                  value 0;
                  description
                    "Display MAC for all RG(s)";
                }
                enum "arp-statistics" {
                  value 1;
                  description
                    "Show MCAE ARP Synchronization statistics";
                }
                enum "nd-statistics" {
                  value 2;
                  description
                    "Show MCAE ND synchronization statistics";
                }
                enum "remote-irb-ifas" {
                  value 3;
                  description
                    "Show MCLAG Remote IRB IFAs";
                }
                enum "local-irb-ifas" {
                  value 4;
                  description
                    "Show MCLAG Locally Syned IRB IFAs";
                }
              }
              description
                "Display information for specified RG or all RG(s)";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml l2ald-mc-ae-rg-entry {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-l2-learning-redundancy-groups
    
        rpc get-l2-learning-context-history {
          description "Print context history";
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml l2ald-ctxt-history {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-l2-learning-context-history
    
        rpc get-l2-learning-context-history-mac {
          description "Mac context history";
          input {
            leaf address {
              type jt:mac-addr;
              default "all";
              description "MAC address";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml l2ald-ctxt-history {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-l2-learning-context-history-mac
    
        rpc get-l2-learning-context-history-mac-ip {
          description "Mac-ip context history";
          input {
            leaf address {
              type jt:mac-addr;
              default "all";
              description "MAC address";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml l2ald-ctxt-history {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-l2-learning-context-history-mac-ip
    
        rpc get-l2-learning-context-history-rpd {
          description "Rpd context history";
          input {
            leaf address {
              type jt:mac-addr;
              default "all";
              description "MAC address";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml l2ald-ctxt-history {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-l2-learning-context-history-rpd
    
        rpc get-l2-learning-context-history-rts {
          description "Rtsock context history";
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml l2ald-ctxt-history {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-l2-learning-context-history-rts
    
        rpc get-l2-learning-context-history-mac-addr {
          description
            "Context history for mac-addr";
          input {
            leaf address {
              type jt:mac-addr;
              default "all";
              description "MAC address";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml l2ald-ctxt-history {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-l2-learning-context-history-mac-addr
    
        rpc get-l2-learning-mgrp-policy {
          description
            "Display global mesh group policy";
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml l2ald-mgrp-policy {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-l2-learning-mgrp-policy
    
        rpc get-l2-learning-mgrp-policy-information {
          description
            "Display Mesh Group policy for routing instance";
          input {
            leaf instance-name {
              type string;
              default "all";
              description
                "Display information for a specified instance";
            }
    
            leaf mgrp-id {
              type union {
                type uint32;
                type string {
                  pattern "<.*>|$.*";
                }
              }
              description "Mesh group id";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml l2ald-mgrp-policy-ri {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-l2-learning-mgrp-policy-information
    
        rpc get-l2-learning-flood-group {
          description
            "Display  Flood Group info";
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml l2ald-flood-group {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-l2-learning-flood-group
    
        rpc get-l2-learning-flood-group-information {
          description
            "Display Flood Group info for routing instance";
          input {
            leaf instance-name {
              type string;
              default "all";
              description
                "Display information for a specified instance";
            }
    
            leaf bd-index {
              type union {
                type uint32;
                type string {
                  pattern "<.*>|$.*";
                }
              }
              description "Bd id";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml l2ald-flood-group-ri {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-l2-learning-flood-group-information
    
        rpc get-l2-learning-eamnh-information {
          description
            "Display EAMNH and member info";
          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 bridge-domain {
              type string;
              default "all";
              description
                "Name of bridging domain, or 'all'";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml l2ald-enh-eamnh-info {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-l2-learning-eamnh-information
    
        rpc get-l2-learning-nh-learn-entries {
          description
            "Display information on all RNH_LE entries";
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml l2ald-nh-learn-entity {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-l2-learning-nh-learn-entries
    
        rpc get-l2-learning-vxlan-svtep-info {
          description
            "Display source VXLAN tunnel endpoint configuration";
          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";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml vxlan-source-vtep-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-l2-learning-vxlan-svtep-info
    
        rpc get-l2-learning-vxlan-svtep-ip-information {
          description
            "Display VXLAN configuration for source ip address";
          input {
            leaf virtual-tunnel-end-point-source-ip {
              type jt:ipaddr;
              mandatory true;
              description
                "Display information for a source ip";
            }
    
            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";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml vxlan-source-vtep-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-l2-learning-vxlan-svtep-ip-information
    
        rpc get-l2-learning-vxlan-rvtep-info {
          description
            "Display remote VXLAN tunnel endpoint information";
          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 verbosity {
              type enumeration {
                enum "detail" {
                  value 0;
                  description
                    "Display detailed output";
                }
                enum "summary" {
                  value 1;
                  description
                    "Display summary output";
                }
              }
              default "detail";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml vxlan-source-vtep-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-l2-learning-vxlan-rvtep-info
    
        rpc get-l2-learning-vxlan-rvtep-mactable-information {
          description
            "Display remote VTEP MAC table";
          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";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml vxlan-remote-vtep-mactable {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-l2-learning-vxlan-rvtep-mactable-information
    
        rpc get-l2-learning-vxlan-remote-svtep-ip-information {
          description
            "Display remote VXLAN endpoints associated with source endpoint";
          input {
            leaf virtual-tunnel-end-point-source-ip {
              type jt:ipaddr;
              mandatory true;
              description
                "Display information for a source ip";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml vxlan-source-vtep-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-l2-learning-vxlan-remote-svtep-ip-information
    
        rpc get-l2-learning-vxlan-rvtep-ip-information {
          description
            "Display remote VTEP MAC table for ip address";
          input {
            leaf virtual-tunnel-end-point-remote-ip {
              type jt:ipaddr;
              mandatory true;
              description
                "Display information for a remote end point";
            }
    
            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";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml vxlan-remote-vtep-ip {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-l2-learning-vxlan-rvtep-ip-information
    
        rpc get-l2-learning-vxlan-esi-info {
          description
            "Display VXLAN tunnel endpoint ESI information";
          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 esi-identifier {
              type string;
              description
                "Ethernet segment identifier";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml vxlan-esi-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-l2-learning-vxlan-esi-info
    
        rpc get-l2-learning-vxlan-arvlbnh-info {
          description
            "Display VXLAN tunnel endpoint AR-VLBNH information";
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml vxlan-arvlbnh-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-l2-learning-vxlan-arvlbnh-info
    
        rpc get-l2-learning-arvlbnh-info-index {
          description
            "Display VxLAN AR-VLBNH information for VLBNH index";
          input {
            leaf vxlan-ar-vlbnh-index {
              type union {
                type uint32;
                type string {
                  pattern "<.*>|$.*";
                }
              }
              mandatory true;
              description
                "Display information for a specified index";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml vxlan-arvlbnh-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-l2-learning-arvlbnh-info-index
    
        rpc get-l2-learning-vxlan-info-rtt-index {
          description
            "Display VxLAN AR-VLBNH information for RTT index";
          input {
            leaf vxlan-ar-vlbnh-rtt-index {
              type union {
                type uint32;
                type string {
                  pattern "<.*>|$.*";
                }
              }
              mandatory true;
              description
                "Display information for a specified RTT index";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml vxlan-arvlbnh-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-l2-learning-vxlan-info-rtt-index
    
        rpc get-l2-learning-vxlan-info-bd-index {
          description
            "Display VxLAN AR-VLBNH information for BD index";
          input {
            leaf vxlan-ar-vlbnh-bd-index {
              type union {
                type uint32;
                type string {
                  pattern "<.*>|$.*";
                }
              }
              mandatory true;
              description
                "Display information for a specified BD index";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml vxlan-arvlbnh-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-l2-learning-vxlan-info-bd-index
    
        rpc get-l2-learning-vxlan-mh-vtep-info {
          description
            "Display Multi Homing Peer VTEP information";
          input {
            leaf logical-system {
              type string;
              default "all";
              description
                "Name of logical system, or 'all'";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml vxlan-mh-vtep-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-l2-learning-vxlan-mh-vtep-info
    
        rpc get-l2-learning-vxlan-rtt-mh-vtep-information {
          description
            "Display MH Peer table for routing instance";
          input {
            leaf instance-name {
              type string;
              default "all";
              description
                "Display information for a specified instance";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml vxlan-rtt-mh-vtep-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-l2-learning-vxlan-rtt-mh-vtep-information
    
        rpc get-l2-learning-vxlan-ip-mh-vtep-information {
          description
            "Display MH Peer table for ip address";
          input {
            leaf virtual-tunnel-end-point-remote-ip {
              type jt:ipaddr;
              mandatory true;
              description
                "Display information for a remote end point";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml vxlan-ip-mh-vtep-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-l2-learning-vxlan-ip-mh-vtep-information
    
        rpc get-evpn-arp-statistics {
          description
            "EVPN arp statistics for irb interfaces";
          input {
            leaf instance {
              type string;
              default "all";
              description
                "Display information for a specified instance";
            }
    
            leaf bridge-domain {
              type string;
              default "all";
              description
                "Name of bridging domain, or 'all'";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml l2rtb-evpn-arp-statistics {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-evpn-arp-statistics
    
        rpc get-evpn-arp-statistics-interface {
          description
            "Display information for irb interfaces";
          input {
            choice interface-choice {
              leaf interface-name {
                type string;
                description
                  "Name of the irb interface";
              }
              leaf all {
                type empty;
                description "All irb interfaces";
              }
            }  // choice interface-choice
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml l2rtb-evpn-arp-statistics-interface {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-evpn-arp-statistics-interface
    
        rpc get-evpn-nd-statistics {
          description
            "EVPN ND statistics for irb interfaces";
          input {
            leaf instance {
              type string;
              default "all";
              description
                "Display information for a specified instance";
            }
    
            leaf bridge-domain {
              type string;
              default "all";
              description
                "Name of bridging domain, or 'all'";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml l2rtb-evpn-nd-statistics {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-evpn-nd-statistics
    
        rpc get-evpn-nd-statistics-interface {
          description
            "Display information for irb interfaces";
          input {
            choice interface-choice {
              leaf interface-name {
                type string;
                description
                  "Name of the irb interface";
              }
              leaf all {
                type empty;
                description "All irb interfaces";
              }
            }  // choice interface-choice
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml l2rtb-evpn-nd-statistics-interface {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-evpn-nd-statistics-interface
    
        rpc get-vlan-evpn-mcnh-information {
          description "EVPN MCNH Info";
          input {
            leaf instance {
              type string;
              default "all";
              description
                "Display information for a specified instance";
            }
    
            leaf bridge-domain {
              type string;
              default "all";
              description
                "Name of bridging domain, or 'all'";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml l2ald-mcnh-info {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-vlan-evpn-mcnh-information
      }  // module junos-nfx-rpc-l2-learning
    

© 2023 YumaWorks, Inc. All rights reserved.