Junos RPC YANG module for vmhost command(s)
Version: 2019-01-01
module junos-ex-rpc-vmhost { yang-version 1; namespace "http://yang.juniper.net/junos-ex/rpc/vmhost"; prefix vmhost; 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 vmhost command(s)"; revision "2019-01-01" { description "Junos: 21.3R1.9"; } rpc get-vmhost-status { description "Show RE vmhost status"; output { choice output_c { leaf output { type string; } anyxml vmhost-status; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-vmhost-status rpc get-vmhost-information { description "Show RE vmhost information"; output { choice output_c { leaf output { type string; } anyxml vmhost-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-vmhost-information rpc get-vmhost-hardware { description "Show RE hardware"; output { choice output_c { leaf output { type string; } anyxml vmhost-hardware; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-vmhost-hardware rpc get-vmhost-resource-usage-information { description "Show RE vmhost resource usage"; output { choice output_c { leaf output { type string; } anyxml sdk-vmmd-output; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-vmhost-resource-usage-information rpc get-vmhost-processes-information { description "Show RE vmhost processes"; output { choice output_c { leaf output { type string; } anyxml sdk-vmmd-output; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-vmhost-processes-information rpc get-vmhost-uptime { description "Show RE vmhost uptime and reboot reason "; output { choice output_c { leaf output { type string; } anyxml vmmd-host-uptime; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-vmhost-uptime rpc get-vmhost-netstat { description "Show RE vmhost netstat"; output { choice output_c { leaf output { type string; } anyxml vmhost-netstat; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-vmhost-netstat rpc get-vmhost-bridge-information { description "Show RE vmhost bridge"; output { choice output_c { leaf output { type string; } anyxml sdk-vmmd-output; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-vmhost-bridge-information rpc get-vmhost-crash-information { description "Show RE vmhost crash information"; output { choice output_c { leaf output { type string; } anyxml sdk-vmmd-output; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-vmhost-crash-information rpc get-vmhost-logs-information { description "Show RE vmhost trace logs"; input { uses command-forwarding; leaf filename { type string; description "Filename to show"; } } output { choice output_c { leaf output { type string; } anyxml sdk-vmmd-output; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-vmhost-logs-information rpc get-vmhost-version-information { description "Show vmhost version information"; input { uses command-forwarding; leaf detail { type empty; description "Information on all versions installed"; } } output { choice output_c { leaf output { type string; } anyxml vmhost-version-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-vmhost-version-information rpc get-vmhost-snapshot-information { description "Show vmhost snapshot information"; output { choice output_c { leaf output { type string; } anyxml vmhost-snapshot-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-vmhost-snapshot-information rpc get-vmhost-management-if-info { description "Display details of the host's management interface"; output { choice output_c { leaf output { type string; } anyxml vmmd-management-if-info; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-vmhost-management-if-info rpc get-vmhost-hard-disk-test { description "Run smartd self tests on hard disks"; input { choice test-type { leaf status { type empty; mandatory true; description "Display status of test"; } } // choice test-type leaf disk { type string; mandatory true; description "Name of hard disk"; } } output { choice output_c { leaf output { type string; } anyxml raid-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-vmhost-hard-disk-test rpc get-vmhost-management-if-summary { description "Show summary of management interface"; input { leaf interface-name { type enumeration { enum "management-if0" { value 0; description "Management interface <if0>"; } enum "management-if1" { value 1; description "Management interface <if1>"; } } } } output { choice output_c { leaf output { type string; } anyxml vmhost-management-interface; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-vmhost-management-if-summary rpc get-vmhost-jdm-status { description "Show status of the vmhost JDM"; output { choice output_c { leaf output { type string; } anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-vmhost-jdm-status 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-vmhost
© 2023 YumaWorks, Inc. All rights reserved.