-
Notifications
You must be signed in to change notification settings - Fork 346
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1357 from chidanandpujar/vmhost_facts
Fix for issue #1355 to add vmhost partitions details to facts
- Loading branch information
Showing
3 changed files
with
140 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<rpc-reply xmlns:junos="http://xml.juniper.net/junos/24.2R2.1/junos"> | ||
<vmhost-version-information> | ||
<current-root> | ||
<current-root-device>sda</current-root-device> | ||
<current-root-label>jrootb_P</current-root-label> | ||
<current-root-partition>sda4</current-root-partition> | ||
</current-root> | ||
<current-boot-disk>Primary</current-boot-disk> | ||
<current-root-set>b</current-root-set> | ||
<uefi-version>CBEP_P_VAL1_00.18.02</uefi-version> | ||
<primary-disk-upgrade-time>Tue Jan 21 21:05:21 PST 2025 | ||
</primary-disk-upgrade-time> | ||
<set-disk-info> | ||
<set-disk-name>set p</set-disk-name> | ||
<set-vmhost-version>7.2725</set-vmhost-version> | ||
<set-vmhost-root>vmhost-x86_64-22.4R3-S2-20240326_1606_builder</set-vmhost-root> | ||
<set-vmhost-core>vmhost-core-x86-64-22.4R3-S3.3</set-vmhost-core> | ||
<set-vmhost-kernel-version>5.2.60-rt15-LTS19</set-vmhost-kernel-version> | ||
<set-junos-version>junos-install-mx-x86-64-22.4R3-S3.3</set-junos-version> | ||
<set-vmhost-diag-version></set-vmhost-diag-version> | ||
</set-disk-info> | ||
<set-disk-info> | ||
<set-disk-name>set b</set-disk-name> | ||
<set-vmhost-version>10.3103</set-vmhost-version> | ||
<set-vmhost-root>vmhost-x86_64-24.2R2-20241112_0808_builder</set-vmhost-root> | ||
<set-vmhost-core>vmhost-core-x86-64-24.2R2.1</set-vmhost-core> | ||
<set-vmhost-kernel-version>5.15.136-rt61-LTS22</set-vmhost-kernel-version> | ||
<set-junos-version>junos-install-mx-x86-64-24.2R2.1</set-junos-version> | ||
<set-vmhost-diag-version></set-vmhost-diag-version> | ||
</set-disk-info> | ||
</vmhost-version-information> | ||
<cli> | ||
<banner></banner> | ||
</cli> | ||
</rpc-reply> |
42 changes: 42 additions & 0 deletions
42
tests/unit/facts/rpc-reply/vmhost_true_get-route-engine-information.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<rpc-reply xmlns:junos="http://xml.juniper.net/junos/19.3R0/junos"> | ||
<route-engine-information xmlns="http://xml.juniper.net/junos/19.3R0/junos-chassis"> | ||
<route-engine> | ||
<status>OK</status> | ||
<temperature junos:celsius="43">43 degrees C / 109 degrees F</temperature> | ||
<cpu-temperature junos:celsius="43">43 degrees C / 109 degrees F</cpu-temperature> | ||
<memory-dram-size>16337 MB</memory-dram-size> | ||
<memory-installed-size>(16384 MB installed)</memory-installed-size> | ||
<memory-buffer-utilization>5</memory-buffer-utilization> | ||
<cpu-user>0</cpu-user> | ||
<cpu-background>0</cpu-background> | ||
<cpu-system>0</cpu-system> | ||
<cpu-interrupt>0</cpu-interrupt> | ||
<cpu-idle>99</cpu-idle> | ||
<cpu-user1>1</cpu-user1> | ||
<cpu-background1>0</cpu-background1> | ||
<cpu-system1>0</cpu-system1> | ||
<cpu-interrupt1>0</cpu-interrupt1> | ||
<cpu-idle1>99</cpu-idle1> | ||
<cpu-user2>0</cpu-user2> | ||
<cpu-background2>0</cpu-background2> | ||
<cpu-system2>0</cpu-system2> | ||
<cpu-interrupt2>0</cpu-interrupt2> | ||
<cpu-idle2>99</cpu-idle2> | ||
<cpu-user3>0</cpu-user3> | ||
<cpu-background3>0</cpu-background3> | ||
<cpu-system3>0</cpu-system3> | ||
<cpu-interrupt3>0</cpu-interrupt3> | ||
<cpu-idle3>99</cpu-idle3> | ||
<model>RE-S-1600x8</model> | ||
<start-time junos:seconds="1738724429">2025-02-05 08:30:29 IST</start-time> | ||
<up-time junos:seconds="101832">1 day, 4 hours, 17 minutes, 12 seconds</up-time> | ||
<last-reboot-reason>0x4000:VJUNOS reboot</last-reboot-reason> | ||
<load-average-one>0.39</load-average-one> | ||
<load-average-five>0.29</load-average-five> | ||
<load-average-fifteen>0.25</load-average-fifteen> | ||
</route-engine> | ||
</route-engine-information> | ||
<cli> | ||
<banner></banner> | ||
</cli> | ||
</rpc-reply> |