Junos RPC YANG module for vmhost command(s)
Version: 2019-01-01
module junos-nfx-rpc-vmhost { yang-version 1; namespace "http://yang.juniper.net/junos-nfx/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 vmhost status information"; 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-system-process-info { description "Show vmhost processes information"; output { choice output_c { leaf output { type string; } anyxml vmhost-system-process-info; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-vmhost-system-process-info rpc get-vmhost-system-process-info-brief { description "Show vmhost processes brief information"; output { choice output_c { leaf output { type string; } anyxml vmhost-system-process-info-brief; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-vmhost-system-process-info-brief rpc get-vmhost-system-process-info-extensive { description "Show vmhost processes extensive information"; output { choice output_c { leaf output { type string; } anyxml vmhost-system-process-info-extensive; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-vmhost-system-process-info-extensive 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 rpc get-vmhost-vlan-information { description "Show vmhost VLANs information"; input { leaf instance { type string; default "all"; description "Display information for a specified instance"; } leaf vlan-name { type string; description "Display information for a specified VLAN"; } 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 l2ng-l2ald-vlan-instance-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-vmhost-vlan-information rpc get-vmhost-memory-controller { description "Show vmhost memory information"; output { choice output_c { leaf output { type string; } anyxml vmhost-memory-controller; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-vmhost-memory-controller rpc get-vmhost-memory-controller-message { description "Show vmhost memory information"; output { choice output_c { leaf output { type string; } anyxml vmhost-memory-controller-message; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-vmhost-memory-controller-message rpc get-vmhost-storage-list-info { description "Show vmhost storage information"; input { leaf name-of-storage { type string; description "Show vmhost storage-name"; } } output { choice output_c { leaf output { type string; } anyxml vmhost-storage-list-info; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-vmhost-storage-list-info rpc get-vmhost-storage-partition-info { description "Show vmhost file system"; input { leaf file-name { type string; } } output { choice output_c { leaf output { type string; } anyxml vmhost-storage-partition-info; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-vmhost-storage-partition-info rpc get-vmhost-network-internal-network { description "Show Host os network information"; input { leaf network-name { type string; } } output { choice output_c { leaf output { type string; } anyxml vmhost-network-internal-network; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-vmhost-network-internal-network rpc get-vmhost-network-nfv-back-plane { description "Show Host os network information"; output { choice output_c { leaf output { type string; } anyxml vmhost-network-nfv-back-plane; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-vmhost-network-nfv-back-plane rpc get-vmhost-network-nfv-back-plane-network { description "Show Host os information for Network"; input { leaf network-name { type string; mandatory true; } } output { choice output_c { leaf output { type string; } anyxml vmhost-network-nfv-back-plane; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-vmhost-network-nfv-back-plane-network rpc get-vmhost-network-nfv-back-plane-interface { description "Show Host os information for Interface"; input { leaf interface-name { type union { type jt:interface-wildcard; type string { pattern "<.*>|$.*"; } } mandatory true; } } output { choice output_c { leaf output { type string; } anyxml vmhost-network-nfv-back-plane; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-vmhost-network-nfv-back-plane-interface rpc get-vmhost-mce-info { description "Show vmhost mce information"; output { choice output_c { leaf output { type string; } anyxml vmhost-mce-info; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-vmhost-mce-info rpc get-vmhost-control-plane-info { description "Show vmhost Control plane information"; output { choice output_c { leaf output { type string; } anyxml vmhost-control-plane-info; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-vmhost-control-plane-info rpc get-cc-information { description "Show cross-connect connections"; input { leaf connection-name { type string; description "Name of the connection"; } leaf state { type enumeration { enum "up" { value 0; description "Connections that are operational"; } enum "down" { value 1; description "Connections that are not operational"; } enum "up-down" { value 2; description "Both operational and nonoperational connections (default)"; } enum "uni-directional" { value 3; description "Connections that are uni-directional"; } enum "bi-directional" { value 4; description "Connections that are bi-directional"; } enum "detail" { value 5; description "Connections that are bi-directional"; } } default "up-down"; } } output { choice output_c { leaf output { type string; } anyxml cc-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-cc-information rpc get-host-os-analyzer-information { description "Show vmhost analyzer information"; input { leaf host-os-analyzer-name { type string; description "Analyzer name"; } } output { choice output_c { leaf output { type string; } anyxml host-os-analyzer-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-host-os-analyzer-information rpc get-vmhost-mode { description "Show current vmhost mode"; input { leaf mode-name { type string; description "Show configured resources for a vmhost mode"; } } output { choice output_c { leaf output { type string; } anyxml vmhost-mode-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-vmhost-mode 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-nfx-rpc-vmhost
© 2023 YumaWorks, Inc. All rights reserved.