junos-qfx-rpc-interfaces

Junos RPC YANG module for interfaces command(s)

  • Version: 2019-01-01

    junos-qfx-rpc-interfaces@2019-01-01


    
      module junos-qfx-rpc-interfaces {
    
        yang-version 1;
    
        namespace
          "http://yang.juniper.net/junos-qfx/rpc/interfaces";
    
        prefix interfaces;
    
        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 interfaces command(s)";
    
        revision "2019-01-01" {
          description "Junos: 21.3R1.9";
        }
    
    
        rpc get-interface-information {
          description
            "Show interface information";
          input {
            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
    
            leaf routing-instance {
              type string;
              description
                "Name of routing instance";
            }
    
            leaf satellite-device {
              type string;
              description
                "Name of satellite device";
            }
    
            leaf ifl-class {
              type enumeration {
                enum "rtsock" {
                  value 0;
                  description
                    "Display rtsock ifls";
                }
                enum "flow" {
                  value 1;
                  description
                    "Display flow ifls";
                }
              }
              description "IFL classification";
            }
    
            leaf get-interface-smart-sfp-statistics {
              type empty;
              description "Smart SFP counters";
            }
    
            leaf get-interface-smart-sfp-defects {
              type empty;
              description
                "Smart SFP defect status";
            }
    
            leaf aggregation-device {
              type empty;
              description
                "Aggregation device interface list";
            }
    
            leaf level {
              type enumeration {
                enum "extensive" {
                  value 0;
                  description
                    "Display extensive output";
                }
                enum "statistics" {
                  value 1;
                  description
                    "Display statistics and detailed output";
                }
                enum "media" {
                  value 2;
                  description
                    "Display media information";
                }
              }
            }
    
            leaf level-extra {
              type enumeration {
                enum "detail" {
                  value 0;
                  description
                    "Display detailed output";
                }
                enum "terse" {
                  value 1;
                  description
                    "Display terse output";
                }
                enum "brief" {
                  value 2;
                  description
                    "Display brief output";
                }
                enum "descriptions" {
                  value 3;
                  description
                    "Display interface description strings";
                }
                enum "prbs-stats" {
                  value 4;
                  description
                    "Display PRBS Stats";
                }
              }
            }
    
            leaf snmp-index {
              type union {
                type uint32;
                type string {
                  pattern "<.*>|$.*";
                }
              }
              description
                "SNMP index of interface";
            }
    
            leaf interface-name {
              type string;
              description
                "Name of physical or logical interface";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml interface-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-interface-information
    
        rpc get-mc-ae-interface-information {
          description
            "Show MC-AE configured interface information";
          input {
            leaf id {
              type union {
                type uint16;
                type string {
                  pattern "<.*>|$.*";
                }
              }
              description "MC-AE id";
            }
    
            leaf unit {
              type union {
                type string {
                  pattern "<.*>|$.*";
                }
                type uint32 {
                  range "0 .. 16385";
                }
              }
              description
                "Logical interface unit number";
            }
    
            leaf extensive {
              type empty;
              description
                "Show mcae information in detail";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml mc-ae-status-information-list {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-mc-ae-interface-information
    
        rpc get-mc-ae-revertive-information {
          description
            "Show mc-ae revertive information";
          input {
            leaf id {
              type union {
                type uint16;
                type string {
                  pattern "<.*>|$.*";
                }
              }
              description "MC-AE id";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml mc-ae-status-information-list {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-mc-ae-revertive-information
    
        rpc get-interface-controller-information {
          description
            "Show controller information";
          input {
            leaf interface-name {
              type string;
              description "Name of controller";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml interface-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-interface-controller-information
    
        rpc get-interfaces-interval {
          description "Show interval statistics";
          input {
            leaf interface-name {
              type string;
              mandatory true;
              description
                "Name of physical interface";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml interfaces-interval {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-interfaces-interval
    
        rpc get-interface-transport-information {
          description
            "Show interface transport information";
          input {
            leaf interface-name {
              type string;
              mandatory true;
              description
                "Name of physical interface";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml interface-transport-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-interface-transport-information
    
        rpc get-interface-transport-pm-information {
          description
            "Show interface transport performance monitoring (pm) information";
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml interface-transport-pm-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-interface-transport-pm-information
    
        rpc get-interface-transport-pm-otn-information {
          description
            "Show interface transport otn pm information";
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml interface-transport-pm-otn-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-interface-transport-pm-otn-information
    
        rpc get-interface-transport-pm-otn-c-information {
          description
            "Show interface transport pm otn current information";
          input {
            leaf interface-name {
              type string;
              mandatory true;
              description
                "Name of physical interface";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml interface-transport-pm-otn-c-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-interface-transport-pm-otn-c-information
    
        rpc get-interface-transport-pm-otn-c-all-information {
          description
            "Show interface transport pm otn current all information";
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml interface-transport-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-interface-transport-pm-otn-c-all-information
    
        rpc get-interface-transport-pm-otn-int-information {
          description
            "Show interface transport pm otn interval information";
          input {
            leaf interface-name {
              type string;
              mandatory true;
              description
                "Name of physical interface";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml interface-transport-pm-otn-int-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-interface-transport-pm-otn-int-information
    
        rpc get-interface-transport-pm-otn-int-all-information {
          description
            "Show interface transport pm otn interval all information";
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml interface-transport-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-interface-transport-pm-otn-int-all-information
    
        rpc get-interface-transport-pm-otn-cday-information {
          description
            "Show interface transport pm otn current day information";
          input {
            leaf interface-name {
              type string;
              mandatory true;
              description
                "Name of physical interface";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml interface-transport-pm-otn-cday-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-interface-transport-pm-otn-cday-information
    
        rpc get-interface-transport-pm-otn-cday-all-information {
          description
            "Show interface transport pm otn current day all information";
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml interface-transport-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-interface-transport-pm-otn-cday-all-information
    
        rpc get-interface-transport-pm-otn-pday-information {
          description
            "Show interface transport pm otn previous day information";
          input {
            leaf interface-name {
              type string;
              mandatory true;
              description
                "Name of physical interface";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml interface-transport-pm-otn-pday-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-interface-transport-pm-otn-pday-information
    
        rpc get-interface-transport-pm-otn-pday-all-information {
          description
            "Show interface transport pm otn previous day all information";
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml interface-transport-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-interface-transport-pm-otn-pday-all-information
    
        rpc get-interface-transport-pm-otn-all-information {
          description
            "Show interface transport pm otn all information";
          input {
            leaf interface-name {
              type string;
              mandatory true;
              description
                "Name of physical interface";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml interface-transport-pm-otn-all-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-interface-transport-pm-otn-all-information
    
        rpc get-interface-transport-pm-otn-all-all-information {
          description
            "Show interface transport pm otn all all information";
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml interface-transport-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-interface-transport-pm-otn-all-all-information
    
        rpc get-interface-transport-pm-optics-information {
          description
            "Show interface transport pm optics information";
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml interface-transport-pm-optics-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-interface-transport-pm-optics-information
    
        rpc get-interface-transport-pm-optics-c-information {
          description
            "Show interface transport pm optics current information";
          input {
            leaf interface-name {
              type string;
              mandatory true;
              description
                "Name of physical interface";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml interface-transport-pm-optics-c-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-interface-transport-pm-optics-c-information
    
        rpc get-interface-transport-pm-optics-c-all-information {
          description
            "Show interface transport pm optics current all information";
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml interface-transport-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-interface-transport-pm-optics-c-all-information
    
        rpc get-interface-transport-pm-optics-int-information {
          description
            "Show interface transport pm optics interval information";
          input {
            leaf interface-name {
              type string;
              mandatory true;
              description
                "Name of physical interface";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml interface-transport-pm-optics-int-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-interface-transport-pm-optics-int-information
    
        rpc get-interface-transport-pm-optics-int-all-information {
          description
            "Show interface transport pm optics interval all information";
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml interface-transport-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-interface-transport-pm-optics-int-all-information
    
        rpc get-interface-transport-pm-optics-cday-information {
          description
            "Show interface transport pm optics current day information";
          input {
            leaf interface-name {
              type string;
              mandatory true;
              description
                "Name of physical interface";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml interface-transport-pm-optics-cday-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-interface-transport-pm-optics-cday-information
    
        rpc get-interface-transport-pm-optics-cday-all-information {
          description
            "Show interface transport pm optics current day all information";
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml interface-transport-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-interface-transport-pm-optics-cday-all-information
    
        rpc get-interface-transport-pm-optics-pday-information {
          description
            "Show interface transport pm optics previous day information";
          input {
            leaf interface-name {
              type string;
              mandatory true;
              description
                "Name of physical interface";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml interface-transport-pm-optics-pday-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-interface-transport-pm-optics-pday-information
    
        rpc get-interface-transport-pm-optics-pday-all-information {
          description
            "Show interface transport pm optics previous day all information";
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml interface-transport-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-interface-transport-pm-optics-pday-all-information
    
        rpc get-interface-transport-pm-optics-all-information {
          description
            "Show interface transport pm optics all information";
          input {
            leaf interface-name {
              type string;
              mandatory true;
              description
                "Name of physical interface";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml interface-transport-pm-optics-all-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-interface-transport-pm-optics-all-information
    
        rpc get-interface-transport-pm-optics-all-all-information {
          description
            "Show interface transport pm optics all all information";
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml interface-transport-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-interface-transport-pm-optics-all-all-information
    
        rpc get-interface-transport-pm-all-information {
          description
            "Show interface transport pm all information";
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml interface-transport-pm-all-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-interface-transport-pm-all-information
    
        rpc get-interface-transport-pm-all-all-information {
          description
            "Show interface transport pm all all information";
          input {
            leaf interface-name {
              type string;
              mandatory true;
              description
                "Name of physical interface";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml interface-transport-pm-all-all-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-interface-transport-pm-all-all-information
    
        rpc get-interface-transport-pm-all-all-all-information {
          description
            "Show interface transport pm all all all information";
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml interface-transport-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-interface-transport-pm-all-all-all-information
    
        rpc get-interface-transport-pm-all-c-information {
          description
            "Show interface transport pm all current information";
          input {
            leaf interface-name {
              type string;
              mandatory true;
              description
                "Name of physical interface";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml interface-transport-pm-all-c-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-interface-transport-pm-all-c-information
    
        rpc get-interface-transport-pm-all-c-all-information {
          description
            "Show interface transport pm all current all information";
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml interface-transport-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-interface-transport-pm-all-c-all-information
    
        rpc get-interface-transport-pm-all-int-information {
          description
            "Show interface transport pm all interval information";
          input {
            leaf interface-name {
              type string;
              mandatory true;
              description
                "Name of physical interface";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml interface-transport-pm-all-int-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-interface-transport-pm-all-int-information
    
        rpc get-interface-transport-pm-all-int-all-information {
          description
            "Show interface transport pm all interval all information";
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml interface-transport-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-interface-transport-pm-all-int-all-information
    
        rpc get-interface-transport-pm-all-cday-information {
          description
            "Show interface transport pm all currentday information";
          input {
            leaf interface-name {
              type string;
              mandatory true;
              description
                "Name of physical interface";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml interface-transport-pm-all-cday-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-interface-transport-pm-all-cday-information
    
        rpc get-interface-transport-pm-all-cday-all-information {
          description
            "Show interface transport pm all currentday all information";
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml interface-transport-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-interface-transport-pm-all-cday-all-information
    
        rpc get-interface-transport-pm-all-pday-information {
          description
            "Show interface transport pm all previousday information";
          input {
            leaf interface-name {
              type string;
              mandatory true;
              description
                "Name of physical interface";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml interface-transport-pm-all-pday-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-interface-transport-pm-all-pday-information
    
        rpc get-interface-transport-pm-all-pday-all-information {
          description
            "Show interface transport pm all previousday all information";
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml interface-transport-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-interface-transport-pm-all-pday-all-information
    
        rpc get-interfaces-far-end-interval {
          description
            "Show far end interval statistics";
          input {
            leaf interface-name {
              type string;
              mandatory true;
              description
                "Name of physical interface";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml interfaces-far-end-interval {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-interfaces-far-end-interval
    
        rpc get-mac-database {
          description
            "Show media access control database information";
          input {
            leaf interface-name {
              type string;
              mandatory true;
              description
                "Name of physical or logical interface";
            }
    
            leaf mac-address {
              type string;
              description "MAC address";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml interface-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-mac-database
    
        rpc get-interface-queue-information {
          description
            "Show queue statistics for this interface";
          input {
            leaf forwarding-class {
              type string;
              description
                "Name of forwarding class";
            }
    
            leaf traffic-direction {
              type enumeration {
                enum "ingress" {
                  value 0;
                  description
                    "Display ingress queue statistics";
                }
                enum "egress" {
                  value 1;
                  description
                    "Display egress queue statistics";
                }
                enum "both-ingress-egress" {
                  value 2;
                  description
                    "Display both ingress and egress queue statistics";
                }
              }
              default "both-ingress-egress";
              description
                "Show statistics for ingress, egress or both";
            }
    
            leaf source-chassis {
              type string;
              description
                "Source chassis name for which to show details";
            }
    
            leaf source-fpc {
              type union {
                type string {
                  pattern "<.*>|$.*";
                }
                type int32 {
                  range "0 .. 8";
                }
              }
              description
                "Source FPC for which to show details";
            }
    
            leaf l2-statistics {
              type empty;
              description
                "Display layer-2 level queue stats for lsq interface";
            }
    
            leaf buffer-occupancy {
              type empty;
              description
                "Display interface egress queue buffer-occupancy";
            }
    
            leaf interface-name {
              type string;
              description
                "Name of physical interface";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml interface-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-interface-queue-information
    
        rpc get-interface-priority-group-information {
          description
            "Show priority group statistics for this interface";
          input {
            leaf buffer-occupancy {
              type empty;
              description
                "Display interface ingress priority-group buffer-occupancy";
            }
    
            leaf interface-name {
              type string;
              description
                "Name of physical interface";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml interface-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-interface-priority-group-information
    
        rpc get-interface-voq-information {
          description
            "Show VOQ drop statistics for this interface";
          input {
            leaf forwarding-class {
              type string;
              description
                "Name of forwarding class";
            }
    
            leaf source-fpc {
              type union {
                type string {
                  pattern "<.*>|$.*";
                }
                type int32 {
                  range "0 .. 15";
                }
              }
              description
                "Source FPC for which to show details";
            }
    
            leaf display-filter {
              type enumeration {
                enum "non-zero" {
                  value 0;
                  description
                    "Display only non-zero VOQ statistics counters";
                }
              }
              description
                "Show VOQ statistics for stats-all or stats-non-zero counters";
            }
    
            leaf interface-name {
              type string;
              description
                "Name of physical interface";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml interface-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-interface-voq-information
    
        rpc get-interface-filter-information {
          description
            "Show interface filters information";
          input {
            leaf interface-name {
              type string;
              description
                "Name of physical or logical interface";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml interface-filter-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-interface-filter-information
    
        rpc get-interface-policer-information {
          description
            "Show interface policers information";
          input {
            leaf interface-name {
              type string;
              description
                "Name of physical or logical interface";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml interface-policer-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-interface-policer-information
    
        rpc get-interface-port-profile-information {
          description
            "Display interface operating speed information";
          input {
            leaf interface-name {
              type string;
              description
                "Name of physical interface";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml interface-port-profile-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-interface-port-profile-information
    
        rpc get-interface-optics-diagnostics-information {
          description
            "Show interface optics-diagnostics information";
          input {
            leaf interface-name {
              type string;
              description
                "Name of physical interface";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml interface-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-interface-optics-diagnostics-information
    
        rpc get-interface-optics-diagnostics-satellite {
          description
            "Name of physical interface in satellite device";
          input {
            leaf fpc-slot {
              type union {
                type string {
                  pattern "<.*>|$.*";
                }
                type uint32 {
                  range "65 .. 254";
                }
              }
              description
                "Satellite slot number";
            }
    
            leaf device-alias {
              type string;
              description "Device alias";
            }
    
            leaf interface-name {
              type string;
              description
                "Name of physical interface";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-interface-optics-diagnostics-satellite
    
        rpc get-interface-optics-profile-diagnostics {
          description
            "Show interfaces diagnostics optics-profile information";
          input {
            leaf interface-name {
              type string;
              description
                "Name of physical interface";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml optics-profile-diagnostics {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-interface-optics-profile-diagnostics
    
        rpc get-destination-class-statistics {
          description
            "Show statistics for destination class";
          input {
            leaf class-name {
              type string;
              mandatory true;
              description
                "Name of destination class";
            }
    
            leaf interface-name {
              type string;
              description
                "Name of logical interface";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml interface-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-destination-class-statistics
    
        rpc get-all-destination-class-statistics {
          description
            "Display all destination class usage";
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml interface-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-all-destination-class-statistics
    
        rpc get-source-class-statistics {
          description
            "Show statistics for source class";
          input {
            leaf class-name {
              type string;
              mandatory true;
              description "Name of source class";
            }
    
            leaf interface-name {
              type string;
              description
                "Name of logical interface";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml interface-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-source-class-statistics
    
        rpc get-all-source-class-statistics {
          description
            "Display all source class usage";
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml interface-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-all-source-class-statistics
    
        rpc get-l2-vlan-info {
          description
            "Show l2 routing instance data structure";
          input {
            leaf routing-instance {
              type string;
              mandatory true;
              description
                "Name of the routing-instance";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml l2-vlan-info {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-l2-vlan-info
    
        rpc get-dcd-lib-client-data {
          description
            "Show library clients of DCD ";
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml dcd-lib-client-data {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-dcd-lib-client-data
    
        rpc get-interfaces-routing {
          description "Show routing status";
          input {
            choice daemon-select {
              leaf rib-sharding {
                type string;
                description "Name of rib shard";
              }
            }  // 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 "summary" {
                  value 2;
                  description
                    "Display summary output";
                }
              }
              default "brief";
            }
    
            leaf interface-name {
              type union {
                type jt:interface-wildcard;
                type string {
                  pattern "<.*>|$.*";
                }
              }
              description "Name of interface";
            }
    
            leaf logical-system {
              type string;
              description
                "Name of logical system, or 'all'";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-interfaces-routing
    
        rpc get-redundancy-status {
          description "Show redundancy status";
          input {
            leaf interface-name {
              type union {
                type jt:interface-wildcard;
                type string {
                  pattern "<.*>|$.*";
                }
              }
              description "Name of interface";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml interface-redundancy-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-redundancy-status
    
        rpc get-redundancy-status-details {
          description
            "Show redundancy status details";
          input {
            leaf interface-name {
              type union {
                type jt:interface-wildcard;
                type string {
                  pattern "<.*>|$.*";
                }
              }
              description "Name of interface";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml interface-redundancy-detail-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-redundancy-status-details
    
        rpc interface-load-balancing {
          description
            "Show load-balancing status";
          input {
            leaf interface-name {
              type union {
                type jt:interface-wildcard;
                type string {
                  pattern "<.*>|$.*";
                }
              }
              description "Name of interface";
            }
    
            leaf detail {
              type empty;
              description
                "Show load-balancing status details";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml interface-load-balancing-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc interface-load-balancing
      }  // module junos-qfx-rpc-interfaces
    

© 2023 YumaWorks, Inc. All rights reserved.