Junos RPC YANG module for rsvp command(s)
Version: 2019-01-01
module junos-qfx-rpc-rsvp { yang-version 1; namespace "http://yang.juniper.net/junos-qfx/rpc/rsvp"; prefix rsvp; 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 rsvp command(s)"; revision "2019-01-01" { description "Junos: 21.3R1.9"; } rpc get-rsvp-interface-information { description "Show RSVP interfaces"; input { choice daemon-select { leaf logical-system { type string; description "Name of logical system, or 'all'"; } } // choice daemon-select leaf instance { type string; description "Name of routing instance"; } leaf level { type enumeration { enum "brief" { value 0; description "Display brief output (default)"; } enum "detail" { value 1; description "Display detailed output"; } enum "extensive" { value 2; description "Display extensive output"; } enum "link-management" { value 3; description "Display RSVP interfaces created by LMP"; } } default "brief"; } leaf interface-name { type string; description "Name of logical interface"; } } output { choice output_c { leaf output { type string; } anyxml rsvp-interface-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-rsvp-interface-information rpc get-rsvp-neighbor-information { description "Show RSVP neighbors"; input { choice daemon-select { leaf logical-system { type string; description "Name of logical system, or 'all'"; } } // choice daemon-select leaf verbosity_level { type enumeration { enum "brief" { value 0; description "Display brief output (default)"; } enum "detail" { value 1; description "Display detailed output"; } } default "brief"; } leaf instance { type string; description "Name of routing instance"; } } output { choice output_c { leaf output { type string; } anyxml rsvp-neighbor-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-rsvp-neighbor-information rpc get-rsvp-session-information { description "Show active RSVP sessions"; input { choice daemon-select { leaf logical-system { type string; description "Name of logical system, or 'all'"; } } // choice daemon-select leaf instance { type string; description "Name of routing instance"; } leaf session-type { type enumeration { enum "ingress" { value 0; description "Display RSVP sessions originating at this router"; } enum "egress" { value 1; description "Display RSVP sessions ending at this router"; } enum "transit" { value 2; description "Display RSVP sessions transiting this router"; } } } leaf session-lsp { type enumeration { enum "lsp" { value 0; description "Display RSVP sessions used to set up LSPs"; } enum "nolsp" { value 1; description "Display RSVP sessions not used to set up LSPs"; } } } leaf lsp-state { type enumeration { enum "up" { value 0; description "Display active LSPs"; } enum "down" { value 1; description "Display inactive LSPs"; } } } leaf lsp-direction { type enumeration { enum "unidirectional" { value 0; description "Display unidirectional RSVP sessions"; } enum "bidirectional" { value 1; description "Display bidirectional RSVP sessions"; } enum "p2mp" { value 2; description "Display point-to-multipoint RSVP sessions"; } enum "externally-provisioned" { value 3; description "Display externally provisioned LSPs"; } } } leaf enhanced-frr-state { type enumeration { enum "enhanced-frr" { value 0; description "Display enhanced FRR enabled RSVP sessions"; } } } leaf level { type enumeration { enum "terse" { value 0; description "Display terse output"; } enum "brief" { value 1; description "Display brief output (default)"; } enum "detail" { value 2; description "Display detailed output"; } enum "extensive" { value 3; description "Display extensive output"; } } default "brief"; } leaf lsp-stat { type enumeration { enum "statistics" { value 0; description "Display packet statistics"; } } } leaf bypass-lsp { type enumeration { enum "bypass" { value 0; description "Display RSVP sessions used to protect LSPs"; } } } leaf activeroutes { type enumeration { enum "count-active-routes" { value 0; description "Show active routes for RSVP sessions"; } } } leaf session-name { type string; description "Name of RSVP session"; } leaf interface { type string; description "Name of interface"; } leaf te-link { type string; description "Name of traffic engineering link"; } } output { choice output_c { leaf output { type string; } anyxml rsvp-session-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-rsvp-session-information rpc get-rsvp-statistics-information { description "Show RSVP statistics"; input { choice daemon-select { leaf logical-system { type string; description "Name of logical system, or 'all'"; } } // choice daemon-select leaf instance { type string; description "Name of routing instance"; } } output { choice output_c { leaf output { type string; } anyxml rsvp-statistics-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-rsvp-statistics-information rpc get-rsvp-version-information { description "Show RSVP version"; input { choice daemon-select { leaf logical-system { type string; description "Name of logical system, or 'all'"; } } // choice daemon-select leaf instance { type string; description "Name of routing instance"; } } output { choice output_c { leaf output { type string; } anyxml rsvp-version-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-rsvp-version-information rpc get-rsvp-route-session-id-information { description "Show RSVP Ingress Route Session IDs"; input { choice daemon-select { leaf logical-system { type string; description "Name of logical system, or 'all'"; } } // choice daemon-select leaf instance { type string; description "Name of routing instance"; } } output { choice output_c { leaf output { type string; } anyxml rsvp-route-session-id-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-rsvp-route-session-id-information rpc get-rsvp-pop-and-fwd-information { description "Show RSVP pop-and-forward info"; input { choice daemon-select { leaf logical-system { type string; description "Name of logical system, or 'all'"; } } // choice daemon-select leaf instance { type string; description "Name of routing instance"; } leaf level { type enumeration { enum "brief" { value 0; description "Display brief output (default)"; } enum "detail" { value 1; description "Display detailed output"; } enum "extensive" { value 2; description "Display extensive output"; } } default "brief"; } leaf shared-label { type union { type uint32; type string { pattern "<.*>|$.*"; } } description "Shared-label"; } } output { choice output_c { leaf output { type string; } anyxml rsvp-pop-and-fwd-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-rsvp-pop-and-fwd-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-qfx-rpc-rsvp
© 2023 YumaWorks, Inc. All rights reserved.