Junos RPC YANG module for bridge command(s)
Version: 2019-01-01
module junos-ex-rpc-bridge { yang-version 1; namespace "http://yang.juniper.net/junos-ex/rpc/bridge"; prefix bridge; 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 bridge command(s)"; revision "2019-01-01" { description "Junos: 21.3R1.9"; } rpc get-bridge-instance-information { description "Show bridge domain information"; input { leaf instance { type string; default "all"; description "Display information for a specified instance"; } leaf bridge-domain { type string; default "all"; status deprecated; description "Display information for a specified bridge domain"; } leaf bridge-domain-name { type string; description "Display information for a specified bridge domain"; } leaf logical-system { type string; default "all"; description "Name of logical system, or 'all'"; } choice interface-choice { leaf interface { type union { type jt:interface-unit; type string { pattern "<.*>|$.*"; } } description "Name of interface for which to display table"; } } // choice interface-choice leaf verbosity { type enumeration { enum "detail" { value 0; description "Display detailed output"; } enum "brief" { value 1; description "Display brief output"; } enum "extensive" { value 2; description "Display extensive output"; } } default "brief"; } } output { choice output_c { leaf output { type string; } anyxml l2ald-bridge-instance-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-bridge-instance-information rpc get-operational-bridge-instance-information { description "Show operational bridging instance"; output { choice output_c { leaf output { type string; } anyxml l2ald-bridge-instance-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-operational-bridge-instance-information rpc get-bridge-statistics-information { description "Show bridge statistics information"; input { leaf logical-system { type string; default "all"; description "Name of logical system, or 'all'"; } leaf instance { type string; default "all"; description "Display information for a specified instance"; } leaf bridge-domain { type string; default "all"; description "Display information for a specified bridge domain"; } } output { choice output_c { leaf output { type string; } anyxml bridge-statistics-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-bridge-statistics-information rpc get-bridge-mac-ip-table { description "Show IP table for EVPN instances"; input { leaf logical-system { type string; default "all"; description "Name of logical system, or 'all'"; } leaf instance { type string; default "all"; description "Display information for a specified instance"; } leaf bridge-domain { type string; default "all"; description "Name of bridging domain, or 'all'"; } leaf address { type jt:mac-addr; default "all"; description "MAC address"; } leaf show-choice { type enumeration { enum "detail" { value 0; description "Display detailed output"; } enum "brief" { value 1; description "Display brief output"; } enum "extensive" { value 2; description "Display extensive output"; } enum "count" { value 3; description "Display count only"; } } default "brief"; } } output { choice output_c { leaf output { type string; } anyxml l2ald-rtb-mac-ip-db; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-bridge-mac-ip-table rpc get-bridge-mac-ip-table-kernel { description "Entries present in kernel"; input { leaf verbosity { type enumeration { enum "detail" { value 0; description "Display detailed output"; } enum "brief" { value 1; description "Display brief output"; } enum "extensive" { value 2; description "Display extensive output"; } } default "brief"; } } output { choice output_c { leaf output { type string; } anyxml l2ald-rtb-mac-ip-kernel-db; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-bridge-mac-ip-table-kernel rpc get-bridge-mac-ip-table-kernel-ipv4 { description "IPv4 entries present in kernel"; input { leaf bd-id { type string; description "Display IP address under particular bd-id"; } leaf ipv4-addr { type jt:ipv4addr; default "all"; description "Display kernel information for ip"; } leaf verbosity { type enumeration { enum "detail" { value 0; description "Display detailed output"; } enum "brief" { value 1; description "Display brief output"; } enum "extensive" { value 2; description "Display extensive output"; } } default "brief"; } } output { choice output_c { leaf output { type string; } anyxml l2ald-rtb-mac-ip-kernel-db; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-bridge-mac-ip-table-kernel-ipv4 rpc get-bridge-mac-ip-table-kernel-ipv6 { description "IPv6 entries present in kernel"; input { leaf bd-id { type string; description "Display IP address under particular bd-id"; } leaf ipv6-addr { type jt:ipv6addr; default "all"; description "Display kernel information for ip"; } leaf verbosity { type enumeration { enum "detail" { value 0; description "Display detailed output"; } enum "brief" { value 1; description "Display brief output"; } enum "extensive" { value 2; description "Display extensive output"; } } default "brief"; } } output { choice output_c { leaf output { type string; } anyxml l2ald-rtb-mac-ip-kernel-db; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-bridge-mac-ip-table-kernel-ipv6 rpc get-bridge-mac-table { description "Show media access control table"; input { leaf instance { type string; default "all"; description "Display information for a specified instance"; } leaf bridge-domain { type string; default "all"; description "Name of bridging domain, or 'all'"; } leaf logical-system { type string; default "all"; description "Name of logical system, or 'all'"; } leaf vlan-id { type string; description "Display MAC address learned on a specified VLAN"; } leaf isid { type string; description "Display Information for specified ISID or all ISID(s)"; } leaf address { type jt:mac-addr; default "all"; description "MAC address"; } leaf show-choice { type enumeration { enum "detail" { value 0; description "Display detailed output"; } enum "brief" { value 1; description "Display brief output"; } enum "extensive" { value 2; description "Display extensive output"; } enum "count" { value 3; description "Display count only"; } enum "age" { value 4; description "Display age of a single mac-address"; } enum "summary" { value 5; description "Display summary output"; } } default "brief"; } } output { choice output_c { leaf output { type string; } anyxml l2ald-rtb-macdb; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-bridge-mac-table rpc get-bridge-interface-mac-table { description "Display MAC table for a specified interface"; input { choice interface-choice { leaf interface-name { type string; description "Name of interface for which to display table"; } leaf all { type empty; description "Display MAC table for all the interfaces"; } } // choice interface-choice leaf remote-beb-mac-address { type jt:mac-addr; default "all"; description "Remote backbone edge bridge MAC address"; } leaf vlan-id { type string; description "Display MAC address learned on a specified VLAN"; } leaf isid { type string; description "Display Information for specified ISID or all ISID(s)"; } leaf show-choice { type enumeration { enum "detail" { value 0; description "Display detailed output"; } enum "brief" { value 1; description "Display brief output"; } enum "extensive" { value 2; description "Display extensive output"; } enum "count" { value 3; description "Display count only"; } enum "age" { value 4; description "Display age of a single mac-address"; } enum "summary" { value 5; description "Display summary output"; } } default "brief"; } } output { choice output_c { leaf output { type string; } anyxml l2ald-interface-macdb; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-bridge-interface-mac-table rpc get-bridge-flood-information { description "Show bridging flooding information"; input { leaf logical-system { type string; default "all"; description "Name of logical system, or 'all'"; } leaf instance { type string; default "all"; description "Display information for a specified instance"; } leaf bridge-domain { type string; default "all"; description "Display information for a specified bridge domain"; } leaf verbosity { type enumeration { enum "detail" { value 0; description "Display detailed output"; } enum "brief" { value 1; description "Display brief output"; } enum "extensive" { value 2; description "Display extensive output"; } } default "detail"; } } output { choice output_c { leaf output { type string; } anyxml l2ald-vpls-flood-instance; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-bridge-flood-information rpc get-bridge-domain-bd-flood-route-information { description "Show route for flooding traffic of a bridge domain if no-local-switching is not enabled"; input { leaf logical-system { type string; default "all"; description "Name of logical system, or 'all'"; } leaf instance { type string; default "all"; description "Display information for a specified instance"; } leaf bridge-domain { type string; default "all"; description "Display information for a specified bridge domain"; } } output { choice output_c { leaf output { type string; } anyxml l2ald-vpls-flood-route-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-bridge-domain-bd-flood-route-information rpc get-show-bridge-domain-all-ce-flood-route-information { description "Show route for flooding traffic to all CE routers if no-local-switching is enabled"; input { leaf logical-system { type string; default "all"; description "Name of logical system, or 'all'"; } leaf instance { type string; default "all"; description "Display information for a specified instance"; } leaf bridge-domain { type string; default "all"; description "Display information for a specified bridge domain"; } } output { choice output_c { leaf output { type string; } anyxml l2ald-vpls-flood-route-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-show-bridge-domain-all-ce-flood-route-information rpc get-show-bridge-domain-ve-flood-route-information { description "Show route for flooding traffic to all VE routers if no-local-switching is enabled"; input { leaf logical-system { type string; default "all"; description "Name of logical system, or 'all'"; } leaf instance { type string; default "all"; description "Display information for a specified instance"; } leaf bridge-domain { type string; default "all"; description "Display information for a specified bridge domain"; } } output { choice output_c { leaf output { type string; } anyxml l2ald-vpls-flood-route-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-show-bridge-domain-ve-flood-route-information rpc get-bridge-domain-re-flood-route-information { description "Show route for Routing Engine flooding to all interfaces"; input { leaf logical-system { type string; default "all"; description "Name of logical system, or 'all'"; } leaf instance { type string; default "all"; description "Display information for a specified instance"; } leaf bridge-domain { type string; default "all"; description "Display information for a specified bridge domain"; } } output { choice output_c { leaf output { type string; } anyxml l2ald-vpls-flood-route-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-bridge-domain-re-flood-route-information rpc get-bridge-domain-mlp-flood-route-information { description "Show route for flooding traffic to MAC learning chips"; input { leaf logical-system { type string; default "all"; description "Name of logical system, or 'all'"; } leaf instance { type string; default "all"; description "Display information for a specified instance"; } leaf bridge-domain { type string; default "all"; description "Display information for a specified bridge domain"; } } output { choice output_c { leaf output { type string; } anyxml l2ald-vpls-flood-route-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-bridge-domain-mlp-flood-route-information rpc get-bridge-domain-event-queue-information { description "Show queue of pending bridge flood events"; output { choice output_c { leaf output { type string; } anyxml l2ald-vpls-flood-event-queue; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-bridge-domain-event-queue-information rpc get-bridge-peer-gateway-mac { description "Show MAC addresses installed as gateway MACs"; input { leaf instance { type string; default "all"; description "Display information for a specified instance"; } leaf bridge-domain { type string; default "all"; description "Name of bridging domain, or 'all'"; } leaf address { type jt:mac-addr; default "all"; description "MAC address"; } } output { choice output_c { leaf output { type string; } anyxml l2rtb-peer-gateway-macdb; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-bridge-peer-gateway-mac 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-ex-rpc-bridge
© 2023 YumaWorks, Inc. All rights reserved.