junos-es-rpc-ldp

Junos RPC YANG module for ldp command(s)

  • Version: 2019-01-01

    junos-es-rpc-ldp@2019-01-01


    
      module junos-es-rpc-ldp {
    
        yang-version 1;
    
        namespace
          "http://yang.juniper.net/junos-es/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
      }  // module junos-es-rpc-ldp
    

© 2023 YumaWorks, Inc. All rights reserved.