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
      }  // module junos-rpc-bgp
    

© 2023 YumaWorks, Inc. All rights reserved.