Junos RPC YANG module for test command(s)
Version: 2019-01-01
module junos-es-rpc-test { yang-version 1; namespace "http://yang.juniper.net/junos-es/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 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-services-traffic-load-balance-code-coverage { description "Execute Traffic load balance code-coverage"; input { leaf database-id { type enumeration { enum "all" { value 0; description "All databases"; } enum "probe" { value 1; description "Probe database"; } enum "firewall" { value 2; description "Firewall"; } enum "ip-db" { value 3; description "Ip database"; } enum "clear-db" { value 4; description "Clear all databases"; } enum "stats" { value 5; description "Stats"; } enum "group-db" { value 6; description "Group database"; } enum "heap" { value 7; description "Heap"; } enum "virtual-svc-db" { value 8; description "Virtual srv database"; } enum "instance-db" { value 9; description "Instance database"; } enum "real-svc-db" { value 10; description "Real srv database"; } enum "group-real-svc-db" { value 11; description "Group real srv database"; } enum "validation-db" { value 12; description "Validation database"; } enum "pconn-db" { value 13; description "Pconn database"; } enum "gencfg-db" { value 14; description "Gencfg database"; } enum "main" { value 15; description "Main functions"; } enum "snmp" { value 16; description "SNMP functions"; } enum "ui" { value 17; description "UI functions"; } enum "config-parse" { value 18; description "Config parse functions"; } enum "filter-config" { value 19; description "Filter database"; } enum "ssd" { value 20; description "SSD functions"; } enum "commit-checks" { value 21; description "Commit checks"; } } description "Database identifier"; } } output { choice output_c { leaf output { type string; } anyxml multi-routing-engine-results { } } // choice output_c } } // rpc test-services-traffic-load-balance-code-coverage rpc test-services-traffic-load-balance-inject-error { description "Execute Traffic load balance error-injection"; input { leaf error-id { type union { type uint32; type string { pattern "<.*>|$.*"; } } mandatory true; description "Error identifier"; } leaf always-fail { type enumeration { enum "enable" { value 0; description "Enable failure"; } enum "disable" { value 1; description "Disable failure"; } } mandatory true; description "Fail always"; } } output { choice output_c { leaf output { type string; } anyxml multi-routing-engine-results { } } // choice output_c } } // rpc test-services-traffic-load-balance-inject-error 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 test-anti-spam-ip { description "Test anti-spam ip-check"; input { leaf test-ip { type jt:ipaddr; mandatory true; description "Anti-spam test IP address"; } } output { choice output_c { leaf output { type string; } anyxml anti-spam-test { } anyxml multi-routing-engine-results { } } // choice output_c } } // rpc test-anti-spam-ip rpc test-web-filtering-profile { description "Test web-filtering profile"; input { leaf profile { type string { length "1 .. 29"; } mandatory true; description "Web-filtering profile name"; } leaf test-url { type string { length "1 .. 249"; } mandatory true; description "Web-filtering test URL"; } choice lsys { leaf logical-system { type string; description "Logical-system name"; } leaf root-logical-system { type empty; description "Root logical-system (default)"; } leaf tenant { type string; description "Tenant name"; } leaf all-logical-systems-tenants { type empty; description "All multitenancy systems"; } } // choice lsys } output { choice output_c { leaf output { type string; } anyxml web-filtering-test { } anyxml multi-routing-engine-results { } } // choice output_c } } // rpc test-web-filtering-profile rpc test-enhanced-web-filtering { description "Test enhanced-web-filtering url-check"; input { leaf test-url { type string { length "1 .. 249"; } mandatory true; description "Enhanced-web-filtering threat-check test URL"; } } output { choice output_c { leaf output { type string; } anyxml enhanced-web-filtering-test { } anyxml multi-routing-engine-results { } } // choice output_c } } // rpc test-enhanced-web-filtering 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 } // module junos-es-rpc-test
© 2023 YumaWorks, Inc. All rights reserved.