junos-rpc-bgp

Junos RPC YANG module for bgp command(s)

  • Version: 2019-01-01

    junos-rpc-bgp@2019-01-01


    
      module junos-rpc-bgp {
    
        yang-version 1;
    
        namespace
          "http://yang.juniper.net/junos/rpc/bgp";
    
        prefix bgp;
    
        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 bgp command(s)";
    
        revision "2019-01-01" {
          description "Junos: 21.3R1.9";
        }
    
    
        rpc get-bgp-summary-information {
          description
            "Show overview of BGP information";
          input {
            choice daemon-select {
              leaf logical-system {
                type string;
                description
                  "Name of logical system, or 'all'";
              }
              leaf rib-sharding {
                type string;
                description "Name of rib shard";
              }
            }  // choice daemon-select
    
            leaf group {
              type string;
              description
                "Show overview of bgp information for a particular group";
            }
    
            leaf exact-instance {
              type string;
              description
                "Show peer information for a particular instance";
            }
    
            leaf instance {
              type string;
              description
                "Show peer information for instances with this prefix";
            }
    
            leaf auto-discovered {
              type empty;
              description
                "Show Auto-discovered peers";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml bgp-information;
              anyxml multi-routing-engine-results;
            }  // choice output_c
          }
        }  // rpc get-bgp-summary-information
    
        rpc get-bgp-group-information {
          description
            "Show the BGP group database";
          input {
            choice daemon-select {
              leaf logical-system {
                type string;
                description
                  "Name of logical system, or 'all'";
              }
              leaf rib-sharding {
                type string;
                description "Name of rib shard";
              }
            }  // choice daemon-select
    
            leaf verbosity_level {
              type enumeration {
                enum "summary" {
                  value 0;
                  description
                    "Display summary output";
                }
                enum "brief" {
                  value 1;
                  description
                    "Display brief output (default)";
                }
                enum "detail" {
                  value 2;
                  description
                    "Display detailed output";
                }
              }
              default "brief";
            }
    
            leaf exact-instance {
              type string;
              description
                "Show peer information for a particular instance";
            }
    
            leaf instance {
              type string;
              description
                "Show peer information for instances with this prefix";
            }
    
            leaf group-name {
              type string;
              description
                "Show group information for a particular group";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml bgp-group-information;
              anyxml multi-routing-engine-results;
            }  // choice output_c
          }
        }  // rpc get-bgp-group-information
    
        rpc get-bgp-group-output-queue-information {
          description
            "Show BGP output queues by priority";
          input {
            choice daemon-select {
              leaf logical-system {
                type string;
                description
                  "Name of logical system, or 'all'";
              }
              leaf rib-sharding {
                type string;
                description "Name of rib shard";
              }
            }  // choice daemon-select
    
            leaf group-name {
              type string;
              description
                "Show group information for a particular group";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml bgp-group-information;
              anyxml multi-routing-engine-results;
            }  // choice output_c
          }
        }  // rpc get-bgp-group-output-queue-information
    
        rpc get-bgp-rtf-information {
          description
            "Show route target filtering information";
          input {
            choice daemon-select {
              leaf rib-sharding {
                type string;
                description "Name of rib shard";
              }
              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 group-name {
              type string;
              description
                "Show group information for a particular group";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml bgp-rtf-information;
              anyxml multi-routing-engine-results;
            }  // choice output_c
          }
        }  // rpc get-bgp-rtf-information
    
        rpc get-bgp-traffic-statistics-information {
          description
            "Show packet statistics for labeled BGP routes";
          input {
            choice daemon-select {
              leaf rib-sharding {
                type string;
                description "Name of rib shard";
              }
              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 group-name {
              type string;
              description
                "Show group information for a particular group";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml bgp-traffic-statistics-information;
              anyxml multi-routing-engine-results;
            }  // choice output_c
          }
        }  // rpc get-bgp-traffic-statistics-information
    
        rpc get-bgp-traffic-stats-ingress-labeled-info {
          description
            "Show ingress labeled path statistics";
          input {
            choice daemon-select {
              leaf rib-sharding {
                type string;
                description "Name of rib shard";
              }
              leaf logical-system {
                type string;
                description
                  "Name of logical system, or 'all'";
              }
            }  // choice daemon-select
    
            leaf label {
              type union {
                type uint32;
                type string {
                  pattern "<.*>|$.*";
                }
              }
              description
                "Top label of label stack";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml bgp-traffic-stats-ingress-labeled-info;
              anyxml multi-routing-engine-results;
            }  // choice output_c
          }
        }  // rpc get-bgp-traffic-stats-ingress-labeled-info
    
        rpc get-bgp-neighbor-information {
          description
            "Show the BGP neighbor database";
          input {
            choice daemon-select {
              leaf logical-system {
                type string;
                description
                  "Name of logical system, or 'all'";
              }
              leaf rib-sharding {
                type string;
                description "Name of rib shard";
              }
            }  // choice daemon-select
    
            leaf exact-instance {
              type string;
              description
                "Show peer information for a particular instance";
            }
    
            leaf instance {
              type string;
              description
                "Show peer information for instances with this prefix";
            }
    
            leaf neighbor-address {
              type string;
              description
                "Show the neighbor database for a particular neighbor";
            }
    
            leaf auto-discovered {
              type empty;
              description
                "Show Auto-discovered peers";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml bgp-information;
              anyxml multi-routing-engine-results;
            }  // choice output_c
          }
        }  // rpc get-bgp-neighbor-information
    
        rpc get-bgp-orf-information {
          description
            "Show outbound route filtering information";
          input {
            choice daemon-select {
              leaf logical-system {
                type string;
                description
                  "Name of logical system, or 'all'";
              }
              leaf rib-sharding {
                type string;
                description "Name of rib shard";
              }
            }  // 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
                "Show ORF information for instances with this prefix";
            }
    
            leaf neighbor-address {
              type string;
              description
                "Show ORF information for a particular neighbor";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml bgp-orf-information;
              anyxml multi-routing-engine-results;
            }  // choice output_c
          }
        }  // rpc get-bgp-orf-information
    
        rpc get-bgp-output-queue-information {
          description
            "Show outbound routes queue depths by priority";
          input {
            choice daemon-select {
              leaf logical-system {
                type string;
                description
                  "Name of logical system, or 'all'";
              }
              leaf rib-sharding {
                type string;
                description "Name of rib shard";
              }
            }  // choice daemon-select
    
            leaf instance {
              type string;
              description
                "Show route queue depths for instances with this prefix";
            }
    
            leaf neighbor-address {
              type string;
              description
                "Show route queue depths for a particular neighbor";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml bgp-information;
              anyxml multi-routing-engine-results;
            }  // choice output_c
          }
        }  // rpc get-bgp-output-queue-information
    
        rpc get-bgp-monitoring-protocol-statistics {
          description
            "Show BGP Monitoring Protocol information";
          input {
            choice daemon-select {
              leaf logical-system {
                type string;
                description
                  "Name of logical system, or 'all'";
              }
              leaf rib-sharding {
                type string;
                description "Name of rib shard";
              }
            }  // choice daemon-select
    
            leaf station-name {
              type string;
              description
                "Show information for a particular station";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml bgp-information;
              anyxml multi-routing-engine-results;
            }  // choice output_c
          }
        }  // rpc get-bgp-monitoring-protocol-statistics
    
        rpc get-bgp-output-queue-scheduler {
          description
            "Show BGP output queue scheduler configuration";
          input {
            choice daemon-select {
              leaf logical-system {
                type string;
                description
                  "Name of logical system, or 'all'";
              }
              leaf rib-sharding {
                type string;
                description "Name of rib shard";
              }
            }  // choice daemon-select
    
            leaf exact-instance {
              type string;
              description
                "Show scheduler for a particular instance";
            }
    
            leaf instance {
              type string;
              description
                "Show scheduler for instances with this prefix";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml bgp-output-queue-scheduler;
              anyxml multi-routing-engine-results;
            }  // choice output_c
          }
        }  // rpc get-bgp-output-queue-scheduler
    
        rpc get-bgp-replication-information {
          description
            "BGP NSR replication state between master and backup";
          input {
            choice daemon-select {
              leaf rib-sharding {
                type string;
                description "Name of rib shard";
              }
              leaf logical-system {
                type string;
                description
                  "Name of logical system, or 'all'";
              }
            }  // choice daemon-select
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml bgp-sync-information;
              anyxml multi-routing-engine-results;
            }  // choice output_c
          }
        }  // rpc get-bgp-replication-information
    
        rpc get-bgp-tunnel-atribute-information {
          description
            "Show Tunnel attributes advertised/received";
          input {
            choice daemon-select {
              leaf logical-system {
                type string;
                description
                  "Name of logical system, or 'all'";
              }
            }  // choice daemon-select
    
            leaf verbosity_level {
              type enumeration {
                enum "summary" {
                  value 0;
                  description
                    "Display summary output";
                }
                enum "brief" {
                  value 1;
                  description
                    "Display brief output (default)";
                }
                enum "detail" {
                  value 2;
                  description
                    "Display detailed output";
                }
              }
              default "brief";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml bgp-tunnel-atribute-information;
              anyxml multi-routing-engine-results;
            }  // choice output_c
          }
        }  // rpc get-bgp-tunnel-atribute-information
    
        rpc get-bgp-spring-information {
          description
            "Show BGP source-packet-routing";
          input {
            choice daemon-select {
              leaf rib-sharding {
                type string;
                description "Name of rib shard";
              }
            }  // choice daemon-select
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml bgp-spring-information;
              anyxml multi-routing-engine-results;
            }  // choice output_c
          }
        }  // rpc get-bgp-spring-information
    
        rpc get-bgp-srgb-information {
          description
            "Show BGP source-packet-routing srgb";
          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 bgp-srgb-information;
              anyxml multi-routing-engine-results;
            }  // choice output_c
          }
        }  // rpc get-bgp-srgb-information
    
        rpc get-bgp-rv-statistics-information {
          description
            "Show BGP route validation statistics";
          input {
            choice daemon-select {
              leaf rib-sharding {
                type string;
                description "Name of rib shard";
              }
            }  // choice daemon-select
    
            leaf instance {
              type string;
              description
                "Show BGP route validation statistics belonging to instances";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml bgp-rv-statistics-information;
              anyxml multi-routing-engine-results;
            }  // choice output_c
          }
        }  // rpc get-bgp-rv-statistics-information
    
        grouping command-forwarding {
          choice chassis-selector {
            leaf all-chassis {
              type empty;
              description "All chassis";
            }
            leaf all-lcc {
              type empty;
              description "All LCC chassis";
            }
            leaf scc {
              type empty;
              description "SCC";
            }
            leaf sfc {
              type union {
                type string {
                  pattern "<.*>|$.*";
                }
                type uint32;
              }
              description "SFC";
            }
            leaf lcc {
              type union {
                type string {
                  pattern "<.*>|$.*";
                }
                type uint32;
              }
              description "Specific LCC";
            }
            leaf node {
              type string;
              description "Specific node";
            }
            leaf bsys {
              type empty;
              description "Base system";
            }
            leaf gnf {
              type union {
                type string {
                  pattern "<.*>|$.*";
                }
                type uint32 {
                  range "1 .. 10";
                }
              }
              description
                "Specific guest network function";
            }
            leaf all-gnfs {
              type empty;
              description
                "All guest network functions";
            }
            leaf all-system {
              type empty;
              description
                "All system (BSYS and GNFs)";
            }
            leaf server {
              type union {
                type string {
                  pattern "<.*>|$.*";
                }
                type uint32 {
                  range "0 .. 1";
                }
              }
              description "Specific server slot";
            }
            leaf all-servers {
              type empty;
              description "All servers";
            }
            leaf vnf {
              type string;
              description
                "Specific virtual-network-function";
            }
            leaf all-vnfs {
              type empty;
              description
                "All virtual-network-functions";
            }
          }  // choice chassis-selector
    
          choice re-selector {
            leaf re0 {
              type empty;
              description "RE0";
            }
            leaf re1 {
              type empty;
              description "RE1";
            }
            leaf routing-engine {
              type enumeration {
                enum "local" {
                  value 0;
                  description
                    "Local routing engine";
                }
                enum "other" {
                  value 1;
                  description
                    "Other routing engine";
                }
                enum "master" {
                  value 2;
                  description
                    "Master routing engine";
                }
                enum "backup" {
                  value 3;
                  description
                    "Backup routing engine";
                }
                enum "both" {
                  value 4;
                  description
                    "Both routing engines";
                }
              }
              description
                "Specific routing engine";
            }
          }  // choice re-selector
    
          choice lr-selector {
            leaf logical-system {
              type string;
              description
                "Name of logical system, or 'all'";
            }
          }  // choice lr-selector
    
          choice tenant-selector {
            leaf tenant {
              type string;
              description
                "Name of tenant, or 'all'";
            }
          }  // choice tenant-selector
    
          choice vc-selector {
            leaf local {
              type empty;
              description
                "Local virtual chassis member";
            }
            leaf all-members {
              type empty;
              description
                "All virtual chassis members";
            }
            leaf member {
              type union {
                type string {
                  pattern "<.*>|$.*";
                }
                type uint32;
              }
              description
                "Specific virtual chassis member";
            }
          }  // choice vc-selector
        }  // grouping command-forwarding
      }  // module junos-rpc-bgp
    

© 2023 YumaWorks, Inc. All rights reserved.