Junos RPC YANG module for test command(s)
Version: 2019-01-01
module junos-qfx-rpc-test { yang-version 1; namespace "http://yang.juniper.net/junos-qfx/rpc/test"; prefix test; 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 test command(s)"; revision "2019-01-01" { description "Junos: 21.3R1.9"; } rpc jdhcpd-set-counters { description "Execute function to set all counters"; output { choice output_c { leaf output { type string; } anyxml multi-routing-engine-results; } // choice output_c } } // rpc jdhcpd-set-counters rpc jdhcpd-clear-stateless-clients { description "Execute function clear any stateless clients"; output { choice output_c { leaf output { type string; } anyxml multi-routing-engine-results; } // choice output_c } } // rpc jdhcpd-clear-stateless-clients rpc jdhcpd-code-coverage { description "Execute functions for code coverage"; output { choice output_c { leaf output { type string; } anyxml multi-routing-engine-results; } // choice output_c } } // rpc jdhcpd-code-coverage rpc test-rfc2544-benchmarking { description "Rfc2544 test configuration"; output { choice output_c { leaf output { type string; } anyxml multi-routing-engine-results; } // choice output_c } } // rpc test-rfc2544-benchmarking rpc test-rfc2544-benchmarking-test { description "Start/stop a rfc2544 test"; input { leaf test-name { type string; description "Test name"; } leaf test-start-stop-clear { type enumeration { enum "start" { value 0; description "Start test"; } enum "stop" { value 1; description "Stop test"; } enum "clear-counters" { value 2; description "Clear test counters"; } } mandatory true; } leaf routing-instance { type string; description "Name of routing instance for rfc2544 test "; } } output { choice output_c { leaf output { type string; } anyxml multi-routing-engine-results; } // choice output_c } } // rpc test-rfc2544-benchmarking-test rpc test-rfc2544-benchmarking-test-id { description "Stop a rfc2544 test"; input { leaf test-id { type union { type uint32; type string { pattern "<.*>|$.*"; } } description "Test id"; } leaf test-stop { type enumeration { enum "stop" { value 0; description "Stop test"; } } } } output { choice output_c { leaf output { type string; } anyxml multi-routing-engine-results; } // choice output_c } } // rpc test-rfc2544-benchmarking-test-id rpc test-interface { description "Perform test on interface"; input { choice test-command { leaf send-modem-commands { type string; description "Send AT command string to modem"; } leaf feac-loop-initiate { type empty; description "Initiate FEAC loopback"; } leaf feac-loop-terminate { type empty; description "Terminate FEAC loopback"; } leaf t3-bert-start { type empty; description "Start bit error rate test on T3 interface"; } leaf e3-bert-start { type empty; description "Start bit error rate test on E3 interface"; } leaf t1-bert-start { type empty; description "Start bit error rate test on T1 interface"; } leaf ds0-bert-start { type empty; description "Start bit error rate test on DS-0 interface"; } leaf e1-bert-start { type empty; description "Start bit error rate test on E1 interface"; } leaf t3-bert-stop { type empty; description "Stop bit error rate test on T3 interface"; } leaf e3-bert-stop { type empty; description "Stop bit error rate test on E3 interface"; } leaf t1-bert-stop { type empty; description "Stop bit error rate test on T1 interface"; } leaf ds0-bert-stop { type empty; description "Stop bit error rate test on DS-0 interface"; } leaf e1-bert-stop { type empty; description "Stop bit error rate test on E1 interface"; } leaf restart-auto-negotiation { type empty; description "Restart autonegotiation"; } leaf ima-test-start { type empty; description "Start IMA group test"; } leaf ima-test-stop { type empty; description "Stop IMA group test"; } } // choice test-command leaf prbs-test-start { type empty; description "Start prbs test on interface"; } leaf prbs-test-stop { type empty; description "Stop prbs test on interface"; } leaf interface-name { type string; mandatory true; description "Name of physical interface"; } } output { choice output_c { leaf output { type string; } anyxml multi-routing-engine-results; } // choice output_c } } // rpc test-interface rpc test-intf-inband-line-loop-terminate { description "Terminate loopback"; input { leaf interface-name { type string; mandatory true; description "Name of physical interface"; } } output { choice output_c { leaf output { type string; } anyxml multi-routing-engine-results; } // choice output_c } } // rpc test-intf-inband-line-loop-terminate rpc test-intf-inband-line-loop-initiate { description "Initiate loopback"; input { leaf interface-name { type string; mandatory true; description "Name of physical interface"; } } output { choice output_c { leaf output { type string; } anyxml multi-routing-engine-results; } // choice output_c } } // rpc test-intf-inband-line-loop-initiate rpc test-intf-inband-line-ansi-terminate { description "Terminate loopback"; input { leaf interface-name { type string; mandatory true; description "Name of physical interface"; } } output { choice output_c { leaf output { type string; } anyxml multi-routing-engine-results; } // choice output_c } } // rpc test-intf-inband-line-ansi-terminate rpc test-intf-inband-line-ansi-initiate { description "Initiate loopback"; input { leaf interface-name { type string; mandatory true; description "Name of physical interface"; } } output { choice output_c { leaf output { type string; } anyxml multi-routing-engine-results; } // choice output_c } } // rpc test-intf-inband-line-ansi-initiate rpc test-intf-inband-line-bellcore-terminate { description "Terminate loopback"; input { leaf interface-name { type string; mandatory true; description "Name of physical interface"; } } output { choice output_c { leaf output { type string; } anyxml multi-routing-engine-results; } // choice output_c } } // rpc test-intf-inband-line-bellcore-terminate rpc test-intf-inband-line-bellcore-initiate { description "Initiate loopback"; input { leaf interface-name { type string; mandatory true; description "Name of physical interface"; } } output { choice output_c { leaf output { type string; } anyxml multi-routing-engine-results; } // choice output_c } } // rpc test-intf-inband-line-bellcore-initiate rpc test-intf-fdl-payload-ansi-terminate { description "Terminate loopback"; input { leaf interface-name { type string; mandatory true; description "Name of physical interface"; } } output { choice output_c { leaf output { type string; } anyxml multi-routing-engine-results; } // choice output_c } } // rpc test-intf-fdl-payload-ansi-terminate rpc test-intf-fdl-payload-ansi-initiate { description "Initiate loopback"; input { leaf interface-name { type string; mandatory true; description "Name of physical interface"; } } output { choice output_c { leaf output { type string; } anyxml multi-routing-engine-results; } // choice output_c } } // rpc test-intf-fdl-payload-ansi-initiate rpc test-intf-fdl-payload-bellcore-terminate { description "Terminate loopback"; input { leaf interface-name { type string; mandatory true; description "Name of physical interface"; } } output { choice output_c { leaf output { type string; } anyxml multi-routing-engine-results; } // choice output_c } } // rpc test-intf-fdl-payload-bellcore-terminate rpc test-intf-fdl-payload-bellcore-initiate { description "Initiate loopback"; input { leaf interface-name { type string; mandatory true; description "Name of physical interface"; } } output { choice output_c { leaf output { type string; } anyxml multi-routing-engine-results; } // choice output_c } } // rpc test-intf-fdl-payload-bellcore-initiate rpc test-intf-fdl-line-ansi-terminate { description "Terminate loopback"; input { leaf interface-name { type string; mandatory true; description "Name of physical interface"; } } output { choice output_c { leaf output { type string; } anyxml multi-routing-engine-results; } // choice output_c } } // rpc test-intf-fdl-line-ansi-terminate rpc test-intf-fdl-line-ansi-initiate { description "Initiate loopback"; input { leaf interface-name { type string; mandatory true; description "Name of physical interface"; } } output { choice output_c { leaf output { type string; } anyxml multi-routing-engine-results; } // choice output_c } } // rpc test-intf-fdl-line-ansi-initiate rpc test-intf-fdl-line-bellcore-terminate { description "Terminate loopback"; input { leaf interface-name { type string; mandatory true; description "Name of physical interface"; } } output { choice output_c { leaf output { type string; } anyxml multi-routing-engine-results; } // choice output_c } } // rpc test-intf-fdl-line-bellcore-terminate rpc test-intf-fdl-line-bellcore-initiate { description "Initiate loopback"; input { leaf interface-name { type string; mandatory true; description "Name of physical interface"; } } output { choice output_c { leaf output { type string; } anyxml multi-routing-engine-results; } // choice output_c } } // rpc test-intf-fdl-line-bellcore-initiate rpc test-intf-inband-payload-ansi-terminate { description "Terminate loopback"; input { leaf interface-name { type string; mandatory true; description "Name of physical interface"; } } output { choice output_c { leaf output { type string; } anyxml multi-routing-engine-results; } // choice output_c } } // rpc test-intf-inband-payload-ansi-terminate rpc test-intf-inband-payload-ansi-initiate { description "Initiate loopback"; input { leaf interface-name { type string; mandatory true; description "Name of physical interface"; } } output { choice output_c { leaf output { type string; } anyxml multi-routing-engine-results; } // choice output_c } } // rpc test-intf-inband-payload-ansi-initiate rpc test-intf-inband-payload-bellcore-terminate { description "Terminate loopback"; input { leaf interface-name { type string; mandatory true; description "Name of physical interface"; } } output { choice output_c { leaf output { type string; } anyxml multi-routing-engine-results; } // choice output_c } } // rpc test-intf-inband-payload-bellcore-terminate rpc test-intf-inband-payload-bellcore-initiate { description "Initiate loopback"; input { leaf interface-name { type string; mandatory true; description "Name of physical interface"; } } output { choice output_c { leaf output { type string; } anyxml multi-routing-engine-results; } // choice output_c } } // rpc test-intf-inband-payload-bellcore-initiate rpc get-dhcp-user-aaa-test-result { description "Test the aaa servers for a dhcp user"; input { leaf user { type string; mandatory true; description "The username to test"; } leaf password { type string; description "The password associated with username"; } leaf profile { type string; description "Specify the access profile name which to use for user"; } leaf logical-system { type string; description "Specify the logical-system in which to authenticate user"; } leaf routing-instance { type string; description "Specify the routing-instance in which to authenticate user"; } leaf service-type { type string; description "Service type "; } leaf mac-address { type jt:mac-addr; description "Specify the Mac address of the DHCP client"; } leaf option-82 { type string; description "Specify the DHCP option 82"; } leaf agent-remote-id { type string { length "1 .. 63"; } description "DSL forum agent remote id "; } leaf source-address { type jt:ipv4addr; description "Use specified address as source address"; } leaf no-address-request { type empty; description "Request is for authentication without address-allocation"; } leaf terminate-code { type enumeration { enum "client-request" { value 0; description "Terminated-id with default mapping to 1"; } enum "lost-carrier" { value 1; description "Terminated-id with default mapping to 2"; } enum "nak" { value 2; description "Terminated-id with default mapping to 15"; } enum "nas-logout" { value 3; description "Terminated-id with default mapping to 10"; } enum "no-offers" { value 4; description "Terminated-id with default mapping to 4"; } } description "Specify DHCP terminate-code"; } } output { choice output_c { leaf output { type string; } anyxml aaa-test-result; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-dhcp-user-aaa-test-result rpc get-authdlite-user-aaa-test-result { description "Test the aaa servers for a authdlite user"; input { leaf user { type string; mandatory true; description "The username to test"; } leaf password { type string; description "The password associated with username"; } leaf profile { type string; description "Specify the access profile name which to use for user"; } leaf port { type string; description "Specify NAS-port to be used for test"; } leaf zero-stats { type empty; description "Specify that acct stats should be set to zero"; } leaf xauth { type empty; description "Emulate xauth client"; } leaf s6a { type empty; description "Emulate s6a client"; } } output { choice output_c { leaf output { type string; } anyxml aaa-test-result; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-authdlite-user-aaa-test-result rpc test-dot1x-sync-req { description "Send sync request to peer AD"; input { leaf rg-id { type union { type uint32; type string { pattern "<.*>|$.*"; } } description "Specify redundancy-group"; } } output { choice output_c { leaf output { type string; } anyxml dot1x-sync-req; anyxml multi-routing-engine-results; } // choice output_c } } // rpc test-dot1x-sync-req rpc test-dot1x-sync-all { description "Send sync message containing all the authenticated entries"; input { leaf rg-id { type union { type uint32; type string { pattern "<.*>|$.*"; } } description "Specify redundancy-group"; } } output { choice output_c { leaf output { type string; } anyxml dot1x-sync-all; anyxml multi-routing-engine-results; } // choice output_c } } // rpc test-dot1x-sync-all rpc test-dot1x-sync-mac { description "Simulate receiving sync message for particular session"; input { leaf session { type string; description "Session param ae-id, ifl-nm, mac, ch-id, user, filter-id, vlan, voip"; } } output { choice output_c { leaf output { type string; } anyxml dot1x-sync-mac; anyxml multi-routing-engine-results; } // choice output_c } } // rpc test-dot1x-sync-mac rpc test-dot1x-del-sync-mac { input { leaf session { type string; description "Session param ae-id, ifl-nm, mac"; } } output { choice output_c { leaf output { type string; } anyxml dot1x-del-sync-mac; anyxml multi-routing-engine-results; } // choice output_c } } // rpc test-dot1x-del-sync-mac rpc rib-sharding-hash-route-to-shard { description "Test route with rib-sharding hash function"; input { leaf destination { type jt:ipprefix; mandatory true; description "IP address and optional prefix length of destination"; } } output { choice output_c { leaf output { type string; } anyxml rib-sharding-hash-route-to-shard; anyxml multi-routing-engine-results; } // choice output_c } } // rpc rib-sharding-hash-route-to-shard rpc test-msdp-dependent-peers { description "Find downstream dependent peers for a prefix"; 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 instance"; } leaf prefix { type jt:ipv4prefix; mandatory true; description "IPv4 address and optional prefix length"; } } output { choice output_c { leaf output { type string; } anyxml multi-routing-engine-results; } // choice output_c } } // rpc test-msdp-dependent-peers rpc test-msdp-rpf-peers { description "Find MSDP reverse-path forwarding peer for an originator"; 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 instance"; } leaf originator { type jt:ipv4prefix; mandatory true; description "IPv4 address and optional prefix length of originator"; } } output { choice output_c { leaf output { type string; } anyxml multi-routing-engine-results; } // choice output_c } } // rpc test-msdp-rpf-peers rpc test-routing-policy { description "Import and export policy evaluation"; input { leaf policy { type string; description "Policy name"; } leaf prefix { type string; description "Destination prefix"; } } output { choice output_c { leaf output { type string; } anyxml route-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc test-routing-policy rpc test-l2-learning { description "Layer 2 forwarding commands"; input { leaf in-memory-debug { type enumeration { enum "disable" { value 0; description "Disable in-memory tracing"; } enum "enable" { value 1; description "Enable in-memory tracing"; } } mandatory true; description "Enable or disable in-memory tracing"; } } output { choice output_c { leaf output { type string; } anyxml multi-routing-engine-results; } // choice output_c } } // rpc test-l2-learning 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-test
© 2023 YumaWorks, Inc. All rights reserved.