junos-nfx-rpc-mpls

Junos RPC YANG module for mpls command(s)

  • Version: 2019-01-01

    junos-nfx-rpc-mpls@2019-01-01


    
      module junos-nfx-rpc-mpls {
    
        yang-version 1;
    
        namespace
          "http://yang.juniper.net/junos-nfx/rpc/mpls";
    
        prefix mpls;
    
        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 mpls command(s)";
    
        revision "2019-01-01" {
          description "Junos: 21.3R1.9";
        }
    
    
        rpc get-egress-protection-information {
          description
            "Show egress-protection information";
          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";
                }
              }
              default "brief";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml ep-operational-information;
              anyxml multi-routing-engine-results;
            }  // choice output_c
          }
        }  // rpc get-egress-protection-information
    
        rpc get-mpls-admin-group-information {
          description
            "Show MPLS administrative 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 routing instance";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml mpls-admin-group-information;
              anyxml multi-routing-engine-results;
            }  // choice output_c
          }
        }  // rpc get-mpls-admin-group-information
    
        rpc get-mpls-admin-group-extended-information {
          description
            "Show MPLS extended administrative 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 routing instance";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml mpls-admin-group-extended-information;
              anyxml multi-routing-engine-results;
            }  // choice output_c
          }
        }  // rpc get-mpls-admin-group-extended-information
    
        rpc get-mpls-abstract-hop-membership-information {
          description
            "Show MPLS abstract hop membership tables";
          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 routing instance";
            }
    
            leaf abstract-hop {
              type string;
              description "Name of abstract hop";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml mpls-abstract-hop-membership-information;
              anyxml multi-routing-engine-results;
            }  // choice output_c
          }
        }  // rpc get-mpls-abstract-hop-membership-information
    
        rpc get-mpls-cspf-information {
          description
            "Show Constrained Shortest Path First 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 routing instance";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml mpls-cspf-information;
              anyxml multi-routing-engine-results;
            }  // choice output_c
          }
        }  // rpc get-mpls-cspf-information
    
        rpc get-mpls-path-information {
          description
            "Show configured named 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 routing instance";
            }
    
            leaf path {
              type string;
              description
                "Name of label-switched path";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml mpls-path-information;
              anyxml multi-routing-engine-results;
            }  // choice output_c
          }
        }  // rpc get-mpls-path-information
    
        rpc get-mpls-diffserv-te-information {
          description
            "Show MPLS Differentiated Services traffic engineering global properties";
          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 routing instance";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml mpls-diffserv-te-information;
              anyxml multi-routing-engine-results;
            }  // choice output_c
          }
        }  // rpc get-mpls-diffserv-te-information
    
        rpc get-mpls-lsp-information {
          description
            "Show configured 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 routing instance";
            }
    
            leaf lsp-type {
              type enumeration {
                enum "ingress" {
                  value 0;
                  description
                    "Display LSPs originating at this router";
                }
                enum "egress" {
                  value 1;
                  description
                    "Display LSPs ending at this router";
                }
                enum "transit" {
                  value 2;
                  description
                    "Display LSPs transiting this router";
                }
              }
            }
    
            leaf level {
              type enumeration {
                enum "terse" {
                  value 0;
                  description
                    "Display terse output";
                }
                enum "brief" {
                  value 1;
                  description
                    "Display brief output (default)";
                }
                enum "detail" {
                  value 2;
                  description
                    "Display detailed output";
                }
                enum "extensive" {
                  value 3;
                  description
                    "Display extensive output";
                }
                enum "descriptions" {
                  value 4;
                  description
                    "Display LSP description strings";
                }
              }
              default "brief";
            }
    
            leaf lsp-state {
              type enumeration {
                enum "up" {
                  value 0;
                  description
                    "Display active LSPs";
                }
                enum "down" {
                  value 1;
                  description
                    "Display inactive LSPs";
                }
              }
            }
    
            leaf lsp-direction {
              type enumeration {
                enum "unidirectional" {
                  value 0;
                  description
                    "Display unidirectional LSPs";
                }
                enum "bidirectional" {
                  value 1;
                  description
                    "Display bidirectional LSPs";
                }
                enum "p2mp" {
                  value 2;
                  description
                    "Display point-to-multipoint LSPs";
                }
                enum "externally-controlled" {
                  value 3;
                  description
                    "Display externally controlled LSPs";
                }
              }
            }
    
            leaf lsp-provisioning {
              type enumeration {
                enum "externally-provisioned" {
                  value 0;
                  description
                    "Display externally provisioned LSPs";
                }
                enum "locally-provisioned" {
                  value 1;
                  description
                    "Display locally provisioned LSPs";
                }
              }
            }
    
            leaf lsp-stat {
              type enumeration {
                enum "statistics" {
                  value 0;
                  description
                    "Display packet statistics for LSPs";
                }
                enum "reverse-statistics" {
                  value 1;
                  description
                    "Display packet statistics for reverse direction of LSPs";
                }
              }
            }
    
            leaf bypass-lsp {
              type enumeration {
                enum "bypass" {
                  value 0;
                  description
                    "Display LSPs used for protecting other LSPs";
                }
              }
            }
    
            leaf activeroutes {
              type enumeration {
                enum "count-active-routes" {
                  value 0;
                  description
                    "Show active routes for LSPs";
                }
              }
            }
    
            leaf regex {
              type string;
              description
                "Regular expression for LSP names to match";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml mpls-lsp-information;
              anyxml multi-routing-engine-results;
            }  // choice output_c
          }
        }  // rpc get-mpls-lsp-information
    
        rpc get-mpls-lsp-defaults-information {
          description "Display LSP defaults";
          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 routing instance";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml mpls-lsp-defaults-information;
              anyxml multi-routing-engine-results;
            }  // choice output_c
          }
        }  // rpc get-mpls-lsp-defaults-information
    
        rpc get-mpls-lsp-autobandwidth {
          description
            "Display autobandwidth statistics for LSPs";
          input {
            choice daemon-select {
              leaf logical-system {
                type string;
                description
                  "Name of logical system, or 'all'";
              }
            }  // choice daemon-select
    
            leaf 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 regex {
              type string;
              description
                "Regular expression for LSP names to match";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml mpls-lsp-information;
              anyxml multi-routing-engine-results;
            }  // choice output_c
          }
        }  // rpc get-mpls-lsp-autobandwidth
    
        rpc get-mpls-lsp-abstract-computation {
          description
            "Display abstract computation preprocessing for LSPs";
          input {
            choice daemon-select {
              leaf logical-system {
                type string;
                description
                  "Name of logical system, or 'all'";
              }
            }  // choice daemon-select
    
            leaf 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 regex {
              type string;
              description
                "Regular expression for LSP names to match";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml mpls-lsp-information;
              anyxml multi-routing-engine-results;
            }  // choice output_c
          }
        }  // rpc get-mpls-lsp-abstract-computation
    
        rpc get-mpls-container-lsp-information {
          description
            "Show configured container-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 routing instance";
            }
    
            leaf lsp-type {
              type enumeration {
                enum "ingress" {
                  value 0;
                  description
                    "Display LSPs originating at this router";
                }
                enum "egress" {
                  value 1;
                  description
                    "Display LSPs ending at this router";
                }
                enum "transit" {
                  value 2;
                  description
                    "Display LSPs transiting this router";
                }
              }
            }
    
            leaf level {
              type enumeration {
                enum "terse" {
                  value 0;
                  description
                    "Display terse output";
                }
                enum "brief" {
                  value 1;
                  description
                    "Display brief output (default)";
                }
                enum "detail" {
                  value 2;
                  description
                    "Display detailed output";
                }
                enum "extensive" {
                  value 3;
                  description
                    "Display extensive output";
                }
                enum "descriptions" {
                  value 4;
                  description
                    "Display LSP description strings";
                }
              }
              default "brief";
            }
    
            leaf lsp-state {
              type enumeration {
                enum "up" {
                  value 0;
                  description
                    "Display active LSPs";
                }
                enum "down" {
                  value 1;
                  description
                    "Display inactive LSPs";
                }
              }
            }
    
            leaf lsp-direction {
              type enumeration {
                enum "unidirectional" {
                  value 0;
                  description
                    "Display unidirectional container LSPs";
                }
              }
            }
    
            leaf lsp-stat {
              type enumeration {
                enum "statistics" {
                  value 0;
                  description
                    "Display packet statistics for LSPs";
                }
              }
            }
    
            leaf activeroutes {
              type enumeration {
                enum "count-active-routes" {
                  value 0;
                  description
                    "Show active routes for LSPs";
                }
              }
            }
    
            leaf regex {
              type string;
              description
                "Regular expression for LSP names to match";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml mpls-container-lsp-information;
              anyxml multi-routing-engine-results;
            }  // choice output_c
          }
        }  // rpc get-mpls-container-lsp-information
    
        rpc get-mpls-container-lsp-defaults-information {
          description
            "Display container LSP defaults";
          input {
            choice daemon-select {
              leaf logical-system {
                type string;
                description
                  "Name of logical system, or 'all'";
              }
            }  // choice daemon-select
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml mpls-container-lsp-defaults-information;
              anyxml multi-routing-engine-results;
            }  // choice output_c
          }
        }  // rpc get-mpls-container-lsp-defaults-information
    
        rpc get-mpls-call-admission-control-information {
          description
            "Show CAC information for MPLS LSPs";
          input {
            choice daemon-select {
              leaf logical-system {
                type string;
                description
                  "Name of logical system, or 'all'";
              }
            }  // choice daemon-select
    
            leaf lsp-name {
              type string {
                length "1 .. 64";
              }
              description "Name of LSP";
            }
    
            leaf instance {
              type string;
              description
                "Name of routing instance";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml mpls-call-admission-control-information;
              anyxml multi-routing-engine-results;
            }  // choice output_c
          }
        }  // rpc get-mpls-call-admission-control-information
    
        rpc get-mpls-context-identifier-information {
          description
            "Show configured egress protection context identifiers";
          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 routing instance";
            }
    
            leaf context-type {
              type enumeration {
                enum "primary" {
                  value 0;
                  description
                    "Display primary context identifier(s)";
                }
                enum "protector" {
                  value 1;
                  description
                    "Display protector context identifier(s)";
                }
              }
            }
    
            leaf level {
              type enumeration {
                enum "brief" {
                  value 0;
                  description
                    "Display brief output (default)";
                }
                enum "detail" {
                  value 1;
                  description
                    "Display detailed output";
                }
              }
              default "brief";
            }
    
            leaf id {
              type string;
              description "Identifier";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml mpls-context-identifier-information;
              anyxml multi-routing-engine-results;
            }  // choice output_c
          }
        }  // rpc get-mpls-context-identifier-information
    
        rpc get-mpls-srlg-information {
          description "Show MPLS SRLG";
          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 routing instance";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml mpls-srlg-information;
              anyxml multi-routing-engine-results;
            }  // choice output_c
          }
        }  // rpc get-mpls-srlg-information
    
        rpc get-mpls-association-path-information {
          description
            "Display all LSPs that share same path";
          input {
            choice daemon-select {
              leaf logical-system {
                type string;
                description
                  "Name of logical system, or 'all'";
              }
            }  // choice daemon-select
    
            leaf path-name {
              type string;
              mandatory true;
              description "Name of path";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml mpls-association-path;
              anyxml multi-routing-engine-results;
            }  // choice output_c
          }
        }  // rpc get-mpls-association-path-information
    
        rpc get-mpls-association-iif-information {
          description
            "Display all LSPs that share same incoming interface";
          input {
            choice daemon-select {
              leaf logical-system {
                type string;
                description
                  "Name of logical system, or 'all'";
              }
            }  // choice daemon-select
    
            leaf interface-name {
              type string;
              mandatory true;
              description
                "Name of incoming interface";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml mpls-association-iif;
              anyxml multi-routing-engine-results;
            }  // choice output_c
          }
        }  // rpc get-mpls-association-iif-information
    
        rpc get-mpls-association-oif-information {
          description
            "Display all LSPs that share same outgoing interface";
          input {
            choice daemon-select {
              leaf logical-system {
                type string;
                description
                  "Name of logical system, or 'all'";
              }
            }  // choice daemon-select
    
            leaf interface-name {
              type string;
              mandatory true;
              description
                "Name of outgoing interface";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml mpls-association-oif;
              anyxml multi-routing-engine-results;
            }  // choice output_c
          }
        }  // rpc get-mpls-association-oif-information
    
        rpc get-mpls-correlation-nexthop-information {
          description
            "Display MPLS LSP info for the owner of this nexthop";
          input {
            choice daemon-select {
              leaf logical-system {
                type string;
                description
                  "Name of logical system, or 'all'";
              }
            }  // choice daemon-select
    
            leaf nhid {
              type union {
                type int32;
                type string {
                  pattern "<.*>|$.*";
                }
              }
              mandatory true;
              description "NH-ID";
            }
    
            leaf level {
              type enumeration {
                enum "terse" {
                  value 0;
                  description
                    "Display terse output";
                }
                enum "brief" {
                  value 1;
                  description
                    "Display brief output (default)";
                }
                enum "detail" {
                  value 2;
                  description
                    "Display detailed output";
                }
                enum "extensive" {
                  value 3;
                  description
                    "Display extensive output";
                }
                enum "descriptions" {
                  value 4;
                  description
                    "Display LSP description strings";
                }
              }
              default "brief";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml mpls-correlation-nhid;
              anyxml multi-routing-engine-results;
            }  // choice output_c
          }
        }  // rpc get-mpls-correlation-nexthop-information
    
        rpc get-mpls-correlation-label-information {
          description
            "Display MPLS LSP info for the owner of this label";
          input {
            choice daemon-select {
              leaf logical-system {
                type string;
                description
                  "Name of logical system, or 'all'";
              }
            }  // choice daemon-select
    
            leaf nhid {
              type union {
                type int32;
                type string {
                  pattern "<.*>|$.*";
                }
              }
              mandatory true;
              description "Label value";
            }
    
            leaf level {
              type enumeration {
                enum "terse" {
                  value 0;
                  description
                    "Display terse output";
                }
                enum "brief" {
                  value 1;
                  description
                    "Display brief output (default)";
                }
                enum "detail" {
                  value 2;
                  description
                    "Display detailed output";
                }
                enum "extensive" {
                  value 3;
                  description
                    "Display extensive output";
                }
                enum "descriptions" {
                  value 4;
                  description
                    "Display LSP description strings";
                }
              }
              default "brief";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml mpls-correlation-label;
              anyxml multi-routing-engine-results;
            }  // choice output_c
          }
        }  // rpc get-mpls-correlation-label-information
    
        rpc get-mpls-interface-information {
          description "Show MPLS interfaces";
          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";
                }
              }
              default "brief";
            }
    
            leaf instance {
              type string;
              description
                "Name of routing instance";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml mpls-interface-information;
              anyxml multi-routing-engine-results;
            }  // choice output_c
          }
        }  // rpc get-mpls-interface-information
    
        rpc mpls-label-space {
          description "Mpls label space";
          input {
            choice daemon-select {
              leaf logical-system {
                type string;
                description
                  "Name of logical system, or 'all'";
              }
            }  // choice daemon-select
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml multi-routing-engine-results;
            }  // choice output_c
          }
        }  // rpc mpls-label-space
    
        rpc mpls-label-history {
          description "Show MPLS label history";
          input {
            choice daemon-select {
              leaf logical-system {
                type string;
                description
                  "Name of logical system, or 'all'";
              }
            }  // choice daemon-select
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml mpls-label-history;
              anyxml multi-routing-engine-results;
            }  // choice output_c
          }
        }  // rpc mpls-label-history
    
        rpc mpls-label-history-range {
          description
            "Show MPLS label history in range";
          input {
            choice daemon-select {
              leaf logical-system {
                type string;
                description
                  "Name of logical system, or 'all'";
              }
            }  // choice daemon-select
    
            leaf label-history-range-start {
              type union {
                type string {
                  pattern "<.*>|$.*";
                }
                type uint32 {
                  range "1 .. 1048575";
                }
              }
              mandatory true;
              description
                "Value of the start of label-range";
            }
    
            leaf label-history-range-end {
              type union {
                type string {
                  pattern "<.*>|$.*";
                }
                type uint32 {
                  range "1 .. 1048575";
                }
              }
              mandatory true;
              description
                "Value of the end of label-range";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml mpls-label-history-range;
              anyxml multi-routing-engine-results;
            }  // choice output_c
          }
        }  // rpc mpls-label-history-range
    
        rpc mpls-history-label-value {
          description "MPLS label value";
          input {
            choice daemon-select {
              leaf logical-system {
                type string;
                description
                  "Name of logical system, or 'all'";
              }
            }  // choice daemon-select
    
            leaf label-history-value {
              type union {
                type string {
                  pattern "<.*>|$.*";
                }
                type uint32 {
                  range "1 .. 1048575";
                }
              }
              mandatory true;
              description "Value of the label";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml mpls-label-value;
              anyxml multi-routing-engine-results;
            }  // choice output_c
          }
        }  // rpc mpls-history-label-value
    
        rpc mpls-label-space-usage {
          description
            "Show MPLS label space usage statistics";
          input {
            choice daemon-select {
              leaf logical-system {
                type string;
                description
                  "Name of logical system, or 'all'";
              }
            }  // choice daemon-select
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml mpls-label-usage;
              anyxml multi-routing-engine-results;
            }  // choice output_c
          }
        }  // rpc mpls-label-space-usage
    
        rpc mpls-label-space-usage-range {
          description
            "Show MPLS label space usage statistics in range";
          input {
            choice daemon-select {
              leaf logical-system {
                type string;
                description
                  "Name of logical system, or 'all'";
              }
            }  // choice daemon-select
    
            leaf label-range-start {
              type union {
                type string {
                  pattern "<.*>|$.*";
                }
                type uint32 {
                  range "1 .. 1048575";
                }
              }
              mandatory true;
              description
                "Value of the start of label-range";
            }
    
            leaf label-range-end {
              type union {
                type string {
                  pattern "<.*>|$.*";
                }
                type uint32 {
                  range "1 .. 1048575";
                }
              }
              mandatory true;
              description
                "Value of the end of label-range";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml mpls-label-usage;
              anyxml multi-routing-engine-results;
            }  // choice output_c
          }
        }  // rpc mpls-label-space-usage-range
    
        rpc mpls-usage-label-value {
          description "MPLS label value";
          input {
            choice daemon-select {
              leaf logical-system {
                type string;
                description
                  "Name of logical system, or 'all'";
              }
            }  // choice daemon-select
    
            leaf label-value {
              type union {
                type string {
                  pattern "<.*>|$.*";
                }
                type uint32 {
                  range "1 .. 1048575";
                }
              }
              mandatory true;
              description "Value of the label";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml mpls-label-value;
              anyxml multi-routing-engine-results;
            }  // choice output_c
          }
        }  // rpc mpls-usage-label-value
    
        rpc get-mpls-tunnel-manager-statistics-information {
          description
            "Show Multiprotocol Label Switching manager 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 routing instance";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml mpls-tunnel-manager-statistics-information;
              anyxml multi-routing-engine-results;
            }  // choice output_c
          }
        }  // rpc get-mpls-tunnel-manager-statistics-information
    
        rpc get-mpls-static-lsp-information {
          description
            "Show configured static 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 routing instance";
            }
    
            leaf lsp-type {
              type enumeration {
                enum "bypass" {
                  value 0;
                  description
                    "Display bypass LSPs originating at this router";
                }
                enum "ingress" {
                  value 1;
                  description
                    "Display LSPs originating at this router";
                }
                enum "transit" {
                  value 2;
                  description
                    "Display LSPs transiting this router";
                }
                enum "segment" {
                  value 3;
                  description
                    "Display segment identifier (SID) labels";
                }
              }
            }
    
            leaf level {
              type enumeration {
                enum "terse" {
                  value 0;
                  description
                    "Display terse output";
                }
                enum "brief" {
                  value 1;
                  description
                    "Display brief output (default)";
                }
                enum "detail" {
                  value 2;
                  description
                    "Display detailed output";
                }
                enum "extensive" {
                  value 3;
                  description
                    "Display extensive output";
                }
                enum "descriptions" {
                  value 4;
                  description
                    "Display LSP description strings";
                }
                enum "statistics" {
                  value 5;
                  description
                    "Display packet statistics for LSPs";
                }
              }
              default "brief";
            }
    
            leaf lsp-state {
              type enumeration {
                enum "up" {
                  value 0;
                  description
                    "Display active LSPs";
                }
                enum "down" {
                  value 1;
                  description
                    "Display inactive LSPs";
                }
              }
            }
    
            leaf regex {
              type string;
              description
                "Regular expression for LSP names to match";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml mpls-static-lsp-information;
              anyxml multi-routing-engine-results;
            }  // choice output_c
          }
        }  // rpc get-mpls-static-lsp-information
    
        rpc get-mpls-traceroute-database-ldp {
          description "Show FECs";
          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 detail {
              type empty;
              description
                "Display detailed output";
            }
    
            leaf no-resolve {
              type empty;
              description
                "Don't attempt to print addresses symbolically";
            }
    
            leaf routing-instance {
              type string;
              description
                "Name of routing instance, or 'all'";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml database;
              anyxml multi-routing-engine-results;
            }  // choice output_c
          }
        }  // rpc get-mpls-traceroute-database-ldp
    
        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-nfx-rpc-mpls
    

© 2023 YumaWorks, Inc. All rights reserved.