Junos RPC YANG module for restart command(s)
Version: 2019-01-01
module junos-ex-rpc-restart { yang-version 1; namespace "http://yang.juniper.net/junos-ex/rpc/restart"; prefix restart; 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 restart command(s)"; revision "2019-01-01" { description "Junos: 21.3R1.9"; } rpc restart-daemon { description "Restart software process"; input { uses command-forwarding; leaf daemon-name { type string; mandatory true; } leaf how-to-reset { type enumeration { enum "gracefully" { value 0; description "Gracefully restart the process"; } enum "soft" { value 1; description "Soft reset (SIGHUP) the process"; } enum "immediately" { value 2; description "Immediately restart (SIGKILL) the process"; } } default "gracefully"; } } output { choice output_c { leaf output { type string; } anyxml multi-routing-engine-results; } // choice output_c } } // rpc restart-daemon rpc routing-restart { description "Routing protocol process"; input { uses command-forwarding; leaf how-to-reset { type enumeration { enum "gracefully" { value 0; description "Gracefully restart the process"; } enum "soft" { value 1; description "Soft reset (SIGHUP) the process"; } enum "immediately" { value 2; description "Immediately restart (SIGKILL) the process"; } } default "gracefully"; } } output { choice output_c { leaf output { type string; } anyxml multi-routing-engine-results; } // choice output_c } } // rpc routing-restart rpc restart-kernel-replication { description "Kernel replication process"; input { uses command-forwarding; leaf how-to-reset { type enumeration { enum "gracefully" { value 0; description "Gracefully restart the process"; } enum "soft" { value 1; description "Soft reset (SIGHUP) the process"; } enum "immediately" { value 2; description "Immediately restart (SIGKILL) the process"; } } default "gracefully"; } } output { choice output_c { leaf output { type string; } anyxml restart-kernel-replication; anyxml multi-routing-engine-results; } // choice output_c } } // rpc restart-kernel-replication rpc restart-web-management { description "Web management process"; output { choice output_c { leaf output { type string; } anyxml multi-routing-engine-results; } // choice output_c } } // rpc restart-web-management rpc restart-named-service { description "DNS server process"; output { choice output_c { leaf output { type string; } anyxml multi-routing-engine-results; } // choice output_c } } // rpc restart-named-service rpc restart-jdmd { description "Juniper Device Manager service process"; input { leaf how-to-reset { type enumeration { enum "gracefully" { value 0; description "Gracefully restart the process"; } enum "soft" { value 1; description "Soft reset (SIGHUP) the process"; } enum "immediately" { value 2; description "Immediately restart (SIGKILL) the process"; } } default "gracefully"; } } output { choice output_c { leaf output { type string; } anyxml multi-routing-engine-results; } // choice output_c } } // rpc restart-jdmd rpc restart-jinventoryd { description "Juniper Inventory Management Daemon"; input { leaf how-to-reset { type enumeration { enum "gracefully" { value 0; description "Gracefully restart the process"; } enum "soft" { value 1; description "Soft reset (SIGHUP) the process"; } enum "immediately" { value 2; description "Immediately restart (SIGKILL) the process"; } } default "gracefully"; } } output { choice output_c { leaf output { type string; } anyxml multi-routing-engine-results; } // choice output_c } } // rpc restart-jinventoryd 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-restart
© 2023 YumaWorks, Inc. All rights reserved.