Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
222 additions
and
14 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
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
49 changes: 49 additions & 0 deletions
49
test/junos/mocked_data/test_get_environment/issue1183_srx_multi_node/expected_result.json
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,49 @@ | ||
{ | ||
"temperature": { | ||
"Routing Engine": { | ||
"temperature": 39, | ||
"is_alert": false, | ||
"is_critical": false | ||
}, | ||
"Routing Engine CPU": { | ||
"temperature": 68, | ||
"is_alert": true, | ||
"is_critical": false | ||
} | ||
}, | ||
"fans": { | ||
"SRX340 Chassis fan 0": { | ||
"status": true | ||
}, | ||
"SRX340 Chassis fan 1": { | ||
"status": true | ||
}, | ||
"SRX340 Chassis fan 2": { | ||
"status": true | ||
}, | ||
"SRX340 Chassis fan 3": { | ||
"status": true | ||
} | ||
}, | ||
"power": { | ||
"Power Supply 0": { | ||
"capacity": -1, | ||
"output": -1, | ||
"status": true | ||
}, | ||
"Power Supply 1": { | ||
"capacity": -1, | ||
"output": -1, | ||
"status": true | ||
} | ||
}, | ||
"cpu": { | ||
"node0": { | ||
"%usage": 8 | ||
} | ||
}, | ||
"memory": { | ||
"available_ram": 4096, | ||
"used_ram": 1311 | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
test/junos/mocked_data/test_get_environment/issue1183_srx_multi_node/facts.yml
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 @@ | ||
srx_cluster: true |
52 changes: 52 additions & 0 deletions
52
...mocked_data/test_get_environment/issue1183_srx_multi_node/get-environment-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,52 @@ | ||
<multi-routing-engine-results> | ||
<multi-routing-engine-item> | ||
<re-name>node0</re-name> | ||
<environment-information> | ||
<environment-item> | ||
<name>Routing Engine</name> | ||
<class>Temp</class> | ||
<status>OK</status> | ||
<temperature celsius="39">39 degrees C / 102 degrees F</temperature> | ||
</environment-item> | ||
<environment-item> | ||
<name>Routing Engine CPU</name> | ||
<status>OK</status> | ||
<temperature celsius="68">68 degrees C / 154 degrees F</temperature> | ||
</environment-item> | ||
<environment-item> | ||
<name>SRX340 Chassis fan 0</name> | ||
<class>Fans</class> | ||
<status>OK</status> | ||
<comment>Spinning at normal speed</comment> | ||
</environment-item> | ||
<environment-item> | ||
<name>SRX340 Chassis fan 1</name> | ||
<class>Fans</class> | ||
<status>OK</status> | ||
<comment>Spinning at normal speed</comment> | ||
</environment-item> | ||
<environment-item> | ||
<name>SRX340 Chassis fan 2</name> | ||
<class>Fans</class> | ||
<status>OK</status> | ||
<comment>Spinning at normal speed</comment> | ||
</environment-item> | ||
<environment-item> | ||
<name>SRX340 Chassis fan 3</name> | ||
<class>Fans</class> | ||
<status>OK</status> | ||
<comment>Spinning at normal speed</comment> | ||
</environment-item> | ||
<environment-item> | ||
<name>Power Supply 0</name> | ||
<class>Power</class> | ||
<status>OK</status> | ||
</environment-item> | ||
<environment-item> | ||
<name>Power Supply 1</name> | ||
<class>Power</class> | ||
<status>OK</status> | ||
</environment-item> | ||
</environment-information> | ||
</multi-routing-engine-item> | ||
</multi-routing-engine-results> |
4 changes: 4 additions & 0 deletions
4
...data/test_get_environment/issue1183_srx_multi_node/get-power-usage-information-detail.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,4 @@ | ||
<power-usage-information> | ||
<power-usage-item> | ||
</power-usage-item> | ||
</power-usage-information> |
34 changes: 34 additions & 0 deletions
34
...ocked_data/test_get_environment/issue1183_srx_multi_node/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,34 @@ | ||
<multi-routing-engine-results> | ||
<multi-routing-engine-item> | ||
<re-name>node0</re-name> | ||
<route-engine-information> | ||
<route-engine> | ||
<status>OK</status> | ||
<temperature celsius="35">35 degrees C / 95 degrees F</temperature> | ||
<cpu-temperature celsius="63">63 degrees C / 145 degrees F</cpu-temperature> | ||
<memory-system-total>4096</memory-system-total> | ||
<memory-system-total-used>1311</memory-system-total-used> | ||
<memory-system-total-util>32</memory-system-total-util> | ||
<memory-control-plane>2624</memory-control-plane> | ||
<memory-control-plane-used>682</memory-control-plane-used> | ||
<memory-control-plane-util>26</memory-control-plane-util> | ||
<memory-data-plane>1472</memory-data-plane> | ||
<memory-data-plane-used>618</memory-data-plane-used> | ||
<memory-data-plane-util>42</memory-data-plane-util> | ||
<cpu-user>6</cpu-user> | ||
<cpu-background>0</cpu-background> | ||
<cpu-system>2</cpu-system> | ||
<cpu-interrupt>0</cpu-interrupt> | ||
<cpu-idle>92</cpu-idle> | ||
<model>RE-SRX345-DUAL-AC</model> | ||
<serial-number>DS1319AF0037</serial-number> | ||
<start-time seconds="1584485864">2020-03-17 22:57:44 UTC</start-time> | ||
<up-time seconds="3626317">41 days, 23 hours, 18 minutes, 37 seconds</up-time> | ||
<last-reboot-reason>0x1:power cycle/failure </last-reboot-reason> | ||
<load-average-one>0.19</load-average-one> | ||
<load-average-five>0.09</load-average-five> | ||
<load-average-fifteen>0.02</load-average-fifteen> | ||
</route-engine> | ||
</route-engine-information> | ||
</multi-routing-engine-item> | ||
</multi-routing-engine-results> |
27 changes: 27 additions & 0 deletions
27
...a/test_get_environment/issue1183_srx_multi_node/get-temperature-threshold-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,27 @@ | ||
<multi-routing-engine-results> | ||
<multi-routing-engine-item> | ||
<re-name>node0</re-name> | ||
<temperature-threshold-information> | ||
<temperature-threshold> | ||
<name>Chassis default</name> | ||
<fan-normal-speed>35</fan-normal-speed> | ||
<fan-high-speed>56</fan-high-speed> | ||
<bad-fan-yellow-alarm>40</bad-fan-yellow-alarm> | ||
<bad-fan-red-alarm>65</bad-fan-red-alarm> | ||
<yellow-alarm>60</yellow-alarm> | ||
<red-alarm>75</red-alarm> | ||
<fire-shutdown>100</fire-shutdown> | ||
</temperature-threshold> | ||
<temperature-threshold> | ||
<name>Routing Engine</name> | ||
<fan-normal-speed>35</fan-normal-speed> | ||
<fan-high-speed>56</fan-high-speed> | ||
<bad-fan-yellow-alarm>40</bad-fan-yellow-alarm> | ||
<bad-fan-red-alarm>65</bad-fan-red-alarm> | ||
<yellow-alarm>60</yellow-alarm> | ||
<red-alarm>75</red-alarm> | ||
<fire-shutdown>100</fire-shutdown> | ||
</temperature-threshold> | ||
</temperature-threshold-information> | ||
</multi-routing-engine-item> | ||
</multi-routing-engine-results> |