Junos RPC YANG module for bridge command(s)
Version: 2019-01-01
module junos-rpc-bridge { yang-version 1; namespace "http://yang.juniper.net/junos/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-satellite-control-bridge-domain { description "Show satellite bridge domain details"; input { leaf verbosity_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 bridge-domain-name { type string; description "Name of the bridge domain"; } leaf vswitch-name { type string; description "VSwitch name"; } leaf fpc { type union { type string { pattern "<.*>|$.*"; } type uint32 { range "65 .. 254"; } } description "FPC slot number"; } } output { choice output_c { leaf output { type string; } anyxml satellite-control-plane-bridge-domain-db; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-satellite-control-bridge-domain 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-satellite-control-bridge-mac-table { description "Show satellite bridge mac table"; input { leaf verbosity_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 bridge-domain-name { type string; description "Name of the bridge domain"; } leaf vswitch-name { type string; description "VSwitch name"; } leaf interface-name { type union { type jt:interface-unit; type string { pattern "<.*>|$.*"; } } description "Name of bridge logical interface"; } leaf fpc { type union { type string { pattern "<.*>|$.*"; } type uint32 { range "65 .. 254"; } } description "FPC slot number"; } } output { choice output_c { leaf output { type string; } anyxml satellite-control-plane-bridge-mac-table-db; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-satellite-control-bridge-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-make-before-break-information { description "Show bridge 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-make-before-break-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-alt-root-flood-route-information { description "Show STP alt-root flooding route used for interface"; input { leaf interface { type union { type jt:interface-unit; type string { pattern "<.*>|$.*"; } } mandatory true; description "Interface for which to show alternate-root flooding route"; } } 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-alt-root-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-satellite-control-flood { description "Show the satellite bridge flooding information"; input { leaf verbosity_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 vswitch-name { type string; description "Virtual switch name"; } leaf bridge-domain-name { type string; description "Bridge domain name"; } } output { choice output_c { leaf output { type string; } anyxml satellite-control-flood; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-satellite-control-flood rpc get-satellite-control-composite-next-hop { description "Show satellite flood next-hops"; input { leaf verbosity_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 nexthop-id { type union { type int32; type string { pattern "<.*>|$.*"; } } description "Next-hop ID"; } } output { choice output_c { leaf output { type string; } anyxml satellite-control-composite-next-hop; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-satellite-control-composite-next-hop 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 rpc get-bridge-evpn-arp-table { description "Show INET entries associated with MACs learned via ARP"; 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"; } 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 l2rtb-evpn-arp-db; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-bridge-evpn-arp-table rpc get-bridge-evpn-nd-table { description "Show INET6 entries associated with MACs learned via NDP"; 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"; } 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 l2rtb-evpn-nd-db; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-bridge-evpn-nd-table rpc get-satellite-control-bridge-interface { description "Show satellite bridge interfaces details"; input { leaf verbosity_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 interface-name { type union { type jt:interface-unit; type string { pattern "<.*>|$.*"; } } description "Name of bridge logical interface"; } leaf fpc { type union { type string { pattern "<.*>|$.*"; } type uint32 { range "65 .. 254"; } } description "FPC slot number"; } } output { choice output_c { leaf output { type string; } anyxml satellite-control-plane-bridge-interface-db; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-satellite-control-bridge-interface rpc get-satellite-device-db { description "Show satellite device information"; input { leaf verbosity_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 device-id { type union { type int32; type string { pattern "<.*>|$.*"; } } description "Device ID"; } } output { choice output_c { leaf output { type string; } anyxml satellite-device-db; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-satellite-device-db rpc get-satellite-control-bridge-event-information { description "Show satellite bridge event information"; input { leaf verbosity_level { type enumeration { enum "brief" { value 0; description "Display brief output (default)"; } enum "detail" { value 1; description "Display detailed output"; } } default "brief"; } } output { choice output_c { leaf output { type string; } anyxml satellite-control-history-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-satellite-control-bridge-event-information rpc get-satellite-internal-logging-information { description "Show the internal logging information"; input { leaf verbosity_level { type enumeration { enum "brief" { value 0; description "Display brief output (default)"; } enum "detail" { value 1; description "Display detailed output"; } } default "brief"; } } output { choice output_c { leaf output { type string; } anyxml satellite-control-logging-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-satellite-internal-logging-information rpc get-satellite-control-bridge-summary { description "Show bridge summary"; input { leaf verbosity_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"; } } output { choice output_c { leaf output { type string; } anyxml satellite-control-plane-bridge-summary-db; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-satellite-control-bridge-summary 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-bridge
© 2023 YumaWorks, Inc. All rights reserved.