junos-rpc-ldp

Junos RPC YANG module for ldp command(s)

  • Version: 2019-01-01

    junos-rpc-ldp@2019-01-01


    
      module junos-rpc-ldp {
    
        yang-version 1;
    
        namespace
          "http://yang.juniper.net/junos/rpc/ldp";
    
        prefix ldp;
    
        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 ldp command(s)";
    
        revision "2019-01-01" {
          description "Junos: 21.3R1.9";
        }
    
    
        rpc get-ldp-overview-information {
          description
            "Show LDP overview 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
                "Name of LDP routing instance";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml ldp-overview-information;
              anyxml multi-routing-engine-results;
            }  // choice output_c
          }
        }  // rpc get-ldp-overview-information
    
        rpc get-ldp-interface-information {
          description
            "Show LDP interface status";
          input {
            choice daemon-select {
              leaf logical-system {
                type string;
                description
                  "Name of logical system, or 'all'";
              }
            }  // choice daemon-select
    
            leaf verbosity_level {
              type enumeration {
                enum "brief" {
                  value 0;
                  description
                    "Display brief output (default)";
                }
                enum "detail" {
                  value 1;
                  description
                    "Display detailed output";
                }
                enum "extensive" {
                  value 2;
                  description
                    "Display extensive output";
                }
              }
              default "brief";
            }
    
            leaf instance {
              type string;
              description
                "Name of LDP routing instance";
            }
    
            leaf interface-name {
              type string;
              description "Name of interface";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml ldp-interface-information;
              anyxml multi-routing-engine-results;
            }  // choice output_c
          }
        }  // rpc get-ldp-interface-information
    
        rpc get-ldp-neighbor-information {
          description "Show LDP neighbor status";
          input {
            choice daemon-select {
              leaf logical-system {
                type string;
                description
                  "Name of logical system, or 'all'";
              }
            }  // choice daemon-select
    
            leaf verbosity_level {
              type enumeration {
                enum "brief" {
                  value 0;
                  description
                    "Display brief output (default)";
                }
                enum "detail" {
                  value 1;
                  description
                    "Display detailed output";
                }
                enum "extensive" {
                  value 2;
                  description
                    "Display extensive output";
                }
              }
              default "brief";
            }
    
            leaf instance {
              type string;
              description
                "Name of LDP routing instance";
            }
    
            leaf neighbor {
              type jt:ipaddr;
              description
                "IP address of the neighbor";
            }
    
            leaf neighbor-type {
              type enumeration {
                enum "auto-targeted" {
                  value 0;
                  description
                    "Auto targeted neighbors";
                }
                enum "auto-discovery" {
                  value 1;
                  description
                    "Auto discovery neighbors";
                }
                enum "link-protection" {
                  value 2;
                  description
                    "Link protection neighbors";
                }
                enum "session-protection" {
                  value 3;
                  description
                    "Session protection neighbors";
                }
              }
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml ldp-neighbor-information;
              anyxml multi-routing-engine-results;
            }  // choice output_c
          }
        }  // rpc get-ldp-neighbor-information
    
        rpc get-ldp-session-information {
          description "Show LDP session status";
          input {
            choice daemon-select {
              leaf logical-system {
                type string;
                description
                  "Name of logical system, or 'all'";
              }
            }  // choice daemon-select
    
            leaf verbosity_level {
              type enumeration {
                enum "brief" {
                  value 0;
                  description
                    "Display brief output (default)";
                }
                enum "detail" {
                  value 1;
                  description
                    "Display detailed output";
                }
                enum "extensive" {
                  value 2;
                  description
                    "Display extensive output";
                }
              }
              default "brief";
            }
    
            leaf instance {
              type string;
              description
                "Name of LDP routing instance";
            }
    
            leaf destination {
              type jt:ipaddr;
              description
                "IP address of session destination";
            }
    
            leaf session-type {
              type enumeration {
                enum "auto-targeted" {
                  value 0;
                  description
                    "Auto targeted sessions";
                }
                enum "auto-discovery" {
                  value 1;
                  description
                    "Auto discovery sessions";
                }
                enum "link-protection" {
                  value 2;
                  description
                    "Link protection sessions";
                }
                enum "session-protection" {
                  value 3;
                  description
                    "Session protection sessions";
                }
              }
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml ldp-session-information;
              anyxml multi-routing-engine-results;
            }  // choice output_c
          }
        }  // rpc get-ldp-session-information
    
        rpc get-ldp-route-information {
          description
            "Show LDP internal topology table";
          input {
            choice daemon-select {
              leaf logical-system {
                type string;
                description
                  "Name of logical system, or 'all'";
              }
            }  // choice daemon-select
    
            leaf verbosity_level {
              type enumeration {
                enum "brief" {
                  value 0;
                  description
                    "Display brief output (default)";
                }
                enum "detail" {
                  value 1;
                  description
                    "Display detailed output";
                }
                enum "extensive" {
                  value 2;
                  description
                    "Display extensive output";
                }
              }
              default "brief";
            }
    
            leaf instance {
              type string;
              description
                "Name of LDP routing instance";
            }
    
            leaf destination {
              type jt:ipprefix;
              description
                "IP address and optional prefix length of destination";
            }
    
            leaf ldp-route-type {
              type enumeration {
                enum "route-only" {
                  value 0;
                  description
                    "Display shadow routes";
                }
                enum "fec-only" {
                  value 1;
                  description "Display LDP FECs";
                }
                enum "fec-and-route" {
                  value 2;
                  description
                    "Display both shadow route and FECs";
                }
              }
              default "route-only";
              description
                "Type of the shadow route ";
            }
    
            leaf ldp-family {
              type enumeration {
                enum "inet" {
                  value 0;
                  description
                    "Display IPv4 routes";
                }
                enum "inet6" {
                  value 1;
                  description
                    "Display IPv6 routes";
                }
              }
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml ldp-route-information;
              anyxml multi-routing-engine-results;
            }  // choice output_c
          }
        }  // rpc get-ldp-route-information
    
        rpc get-ldp-path-information {
          description "Show LDP path table";
          input {
            choice daemon-select {
              leaf logical-system {
                type string;
                description
                  "Name of logical system, or 'all'";
              }
            }  // choice daemon-select
    
            leaf verbosity_level {
              type enumeration {
                enum "brief" {
                  value 0;
                  description
                    "Display brief output (default)";
                }
                enum "detail" {
                  value 1;
                  description
                    "Display detailed output";
                }
                enum "extensive" {
                  value 2;
                  description
                    "Display extensive output";
                }
              }
              default "brief";
            }
    
            leaf instance {
              type string;
              description
                "Name of LDP routing instance";
            }
    
            leaf destination {
              type jt:ipprefix;
              description
                "IP address and optional prefix length of destination";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml ldp-path-information;
              anyxml multi-routing-engine-results;
            }  // choice output_c
          }
        }  // rpc get-ldp-path-information
    
        rpc get-ldp-database-information {
          description "Show LDP label database";
          input {
            choice daemon-select {
              leaf logical-system {
                type string;
                description
                  "Name of logical system, or 'all'";
              }
            }  // choice daemon-select
    
            leaf verbosity_level {
              type enumeration {
                enum "summary" {
                  value 0;
                  description
                    "Display summary output";
                }
                enum "brief" {
                  value 1;
                  description
                    "Display brief output (default)";
                }
                enum "detail" {
                  value 2;
                  description
                    "Display detailed output";
                }
                enum "extensive" {
                  value 3;
                  description
                    "Display extensive output";
                }
              }
              default "brief";
            }
    
            leaf instance {
              type string;
              description
                "Name of LDP routing instance";
            }
    
            leaf session {
              type jt:ipaddr;
              description
                "IP address of session destination";
            }
    
            leaf fec-type {
              type enumeration {
                enum "inet" {
                  value 0;
                  description
                    "Display IPv4 bindings";
                }
                enum "inet6" {
                  value 1;
                  description
                    "Display IPv6 bindings";
                }
                enum "l2circuit" {
                  value 2;
                  description
                    "Display Layer 2 circuit bindings";
                }
                enum "p2mp" {
                  value 3;
                  description
                    "Display P2MP bindings";
                }
              }
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml ldp-database-information;
              anyxml multi-routing-engine-results;
            }  // choice output_c
          }
        }  // rpc get-ldp-database-information
    
        rpc get-ldp-database-label-requests-information {
          description
            "Display Label Requests state";
          input {
            choice daemon-select {
              leaf logical-system {
                type string;
                description
                  "Name of logical system, or 'all'";
              }
            }  // choice daemon-select
    
            leaf verbosity_level {
              type enumeration {
                enum "brief" {
                  value 0;
                  description
                    "Display brief output (default)";
                }
                enum "detail" {
                  value 1;
                  description
                    "Display detailed output";
                }
                enum "extensive" {
                  value 2;
                  description
                    "Display extensive output";
                }
              }
              default "brief";
            }
    
            leaf instance {
              type string;
              description
                "Name of LDP routing instance";
            }
    
            leaf session {
              type jt:ipaddr;
              description
                "IP address of session destination";
            }
    
            leaf fec-type {
              type enumeration {
                enum "inet" {
                  value 0;
                  description
                    "Display IPv4 bindings";
                }
                enum "l2circuit" {
                  value 1;
                  description
                    "Display Layer 2 circuit bindings";
                }
                enum "p2mp" {
                  value 2;
                  description
                    "Display P2MP bindings";
                }
              }
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml ldp-database-label-requests-information;
              anyxml multi-routing-engine-results;
            }  // choice output_c
          }
        }  // rpc get-ldp-database-label-requests-information
    
        rpc get-ldp-statistics-information {
          description "Show LDP statistics";
          input {
            choice daemon-select {
              leaf logical-system {
                type string;
                description
                  "Name of logical system, or 'all'";
              }
            }  // choice daemon-select
    
            leaf instance {
              type string;
              description
                "Name of LDP routing instance";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml ldp-statistics-information;
              anyxml multi-routing-engine-results;
            }  // choice output_c
          }
        }  // rpc get-ldp-statistics-information
    
        rpc get-ldp-traffic-statistics-information {
          description
            "Show packet statistics for LDP label-switched paths";
          input {
            choice daemon-select {
              leaf logical-system {
                type string;
                description
                  "Name of logical system, or 'all'";
              }
            }  // choice daemon-select
    
            leaf instance {
              type string;
              description
                "Name of LDP routing instance";
            }
    
            leaf fec-type {
              type enumeration {
                enum "inet" {
                  value 0;
                  description
                    "Display statistics for INET FECs";
                }
                enum "p2mp" {
                  value 1;
                  description
                    "Display statistics for P2MP FECs";
                }
              }
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml ldp-traffic-statistics-information;
              anyxml multi-routing-engine-results;
            }  // choice output_c
          }
        }  // rpc get-ldp-traffic-statistics-information
    
        rpc get-ldp-interface-statistics-information {
          description
            "Show packet statistics for LDP interfaces";
          input {
            leaf interface-type {
              type enumeration {
                enum "p2mp" {
                  value 0;
                  description
                    "Display interface traffic statistics for P2MP";
                }
              }
              mandatory true;
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml ldp-interface-statistics-information;
              anyxml multi-routing-engine-results;
            }  // choice output_c
          }
        }  // rpc get-ldp-interface-statistics-information
    
        rpc get-ldp-fec-filters-information {
          description
            "Show filters for forwarding equivalence classes";
          input {
            choice daemon-select {
              leaf logical-system {
                type string;
                description
                  "Name of logical system, or 'all'";
              }
            }  // choice daemon-select
    
            leaf instance {
              type string;
              description
                "Name of LDP routing instance";
            }
    
            leaf fec {
              type jt:ipprefix;
              description
                "Forwarding equivalence class";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml ldp-fec-filters-information;
              anyxml multi-routing-engine-results;
            }  // choice output_c
          }
        }  // rpc get-ldp-fec-filters-information
    
        rpc get-ldp-rib-groups-information {
          description "Show LDP rib-groups";
          input {
            choice daemon-select {
              leaf logical-system {
                type string;
                description
                  "Name of logical system, or 'all'";
              }
            }  // choice daemon-select
    
            leaf instance {
              type string;
              description
                "Name of LDP routing instance";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml ldp-rib-groups-information;
              anyxml multi-routing-engine-results;
            }  // choice output_c
          }
        }  // rpc get-ldp-rib-groups-information
    
        rpc get-ldp-oam-information {
          description "Show LDP OAM information";
          input {
            choice daemon-select {
              leaf logical-system {
                type string;
                description
                  "Name of logical system, or 'all'";
              }
            }  // choice daemon-select
    
            leaf fec {
              type jt:ipprefix;
              description
                "IP address and optional prefix length of FEC";
            }
    
            leaf instance {
              type string;
              description
                "Name of LDP routing instance";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml ldp-oam-information;
              anyxml multi-routing-engine-results;
            }  // choice output_c
          }
        }  // rpc get-ldp-oam-information
    
        rpc get-ldp-p2mp-path-information {
          description "Show LDP p2mp path table";
          input {
            choice daemon-select {
              leaf logical-system {
                type string;
                description
                  "Name of logical system, or 'all'";
              }
            }  // choice daemon-select
    
            leaf verbosity_level {
              type enumeration {
                enum "brief" {
                  value 0;
                  description
                    "Display brief output (default)";
                }
                enum "detail" {
                  value 1;
                  description
                    "Display detailed output";
                }
                enum "extensive" {
                  value 2;
                  description
                    "Display extensive output";
                }
              }
              default "brief";
            }
    
            leaf instance {
              type string;
              description
                "Name of LDP routing instance";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml ldp-p2mp-path-information;
              anyxml multi-routing-engine-results;
            }  // choice output_c
          }
        }  // rpc get-ldp-p2mp-path-information
    
        rpc get-ldp-p2mp-tunnel-information {
          description
            "Show LDP p2mp tunnel table";
          input {
            choice daemon-select {
              leaf logical-system {
                type string;
                description
                  "Name of logical system, or 'all'";
              }
            }  // choice daemon-select
    
            leaf verbosity_level {
              type enumeration {
                enum "brief" {
                  value 0;
                  description
                    "Display brief output (default)";
                }
                enum "detail" {
                  value 1;
                  description
                    "Display detailed output";
                }
                enum "extensive" {
                  value 2;
                  description
                    "Display extensive output";
                }
              }
              default "brief";
            }
    
            leaf instance {
              type string;
              description
                "Name of LDP routing instance";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml ldp-p2mp-tunnel-information;
              anyxml multi-routing-engine-results;
            }  // choice output_c
          }
        }  // rpc get-ldp-p2mp-tunnel-information
    
        rpc get-ldp-p2mp-fec-information {
          description "Show LDP p2mp fec table";
          input {
            choice daemon-select {
              leaf logical-system {
                type string;
                description
                  "Name of logical system, or 'all'";
              }
            }  // choice daemon-select
    
            leaf verbosity_level {
              type enumeration {
                enum "brief" {
                  value 0;
                  description
                    "Display brief output (default)";
                }
                enum "detail" {
                  value 1;
                  description
                    "Display detailed output";
                }
                enum "extensive" {
                  value 2;
                  description
                    "Display extensive output";
                }
              }
              default "brief";
            }
    
            leaf instance {
              type string;
              description
                "Name of LDP routing instance";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml ldp-p2mp-fec-information;
              anyxml multi-routing-engine-results;
            }  // choice output_c
          }
        }  // rpc get-ldp-p2mp-fec-information
    
        grouping command-forwarding {
          choice chassis-selector {
            leaf all-chassis {
              type empty;
              description "All chassis";
            }
            leaf all-lcc {
              type empty;
              description "All LCC chassis";
            }
            leaf scc {
              type empty;
              description "SCC";
            }
            leaf sfc {
              type union {
                type string {
                  pattern "<.*>|$.*";
                }
                type uint32;
              }
              description "SFC";
            }
            leaf lcc {
              type union {
                type string {
                  pattern "<.*>|$.*";
                }
                type uint32;
              }
              description "Specific LCC";
            }
            leaf node {
              type string;
              description "Specific node";
            }
            leaf bsys {
              type empty;
              description "Base system";
            }
            leaf gnf {
              type union {
                type string {
                  pattern "<.*>|$.*";
                }
                type uint32 {
                  range "1 .. 10";
                }
              }
              description
                "Specific guest network function";
            }
            leaf all-gnfs {
              type empty;
              description
                "All guest network functions";
            }
            leaf all-system {
              type empty;
              description
                "All system (BSYS and GNFs)";
            }
            leaf server {
              type union {
                type string {
                  pattern "<.*>|$.*";
                }
                type uint32 {
                  range "0 .. 1";
                }
              }
              description "Specific server slot";
            }
            leaf all-servers {
              type empty;
              description "All servers";
            }
            leaf vnf {
              type string;
              description
                "Specific virtual-network-function";
            }
            leaf all-vnfs {
              type empty;
              description
                "All virtual-network-functions";
            }
          }  // choice chassis-selector
    
          choice re-selector {
            leaf re0 {
              type empty;
              description "RE0";
            }
            leaf re1 {
              type empty;
              description "RE1";
            }
            leaf routing-engine {
              type enumeration {
                enum "local" {
                  value 0;
                  description
                    "Local routing engine";
                }
                enum "other" {
                  value 1;
                  description
                    "Other routing engine";
                }
                enum "master" {
                  value 2;
                  description
                    "Master routing engine";
                }
                enum "backup" {
                  value 3;
                  description
                    "Backup routing engine";
                }
                enum "both" {
                  value 4;
                  description
                    "Both routing engines";
                }
              }
              description
                "Specific routing engine";
            }
          }  // choice re-selector
    
          choice lr-selector {
            leaf logical-system {
              type string;
              description
                "Name of logical system, or 'all'";
            }
          }  // choice lr-selector
    
          choice tenant-selector {
            leaf tenant {
              type string;
              description
                "Name of tenant, or 'all'";
            }
          }  // choice tenant-selector
    
          choice vc-selector {
            leaf local {
              type empty;
              description
                "Local virtual chassis member";
            }
            leaf all-members {
              type empty;
              description
                "All virtual chassis members";
            }
            leaf member {
              type union {
                type string {
                  pattern "<.*>|$.*";
                }
                type uint32;
              }
              description
                "Specific virtual chassis member";
            }
          }  // choice vc-selector
        }  // grouping command-forwarding
      }  // module junos-rpc-ldp
    

© 2023 YumaWorks, Inc. All rights reserved.