Added vmhost paramater in dev.facts #1333
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added vmhost parameter in the facts template to check running device is vmhost supported or not.
If vmhost returns
True
, then the running device is Vmhost supported device.If vmhost returns
False
, then the running device is non-Vmhost-supported device and Junos evolved device.If Vmhost returns
None
, in case of error to fetch the vmhost data.Functional test cases:
O/p:
The output of facts['vmhost'] in vmhost supported device: True
The output of facts['vmhost'] in vmhost supported device after refresh: True
The output of facts['vmhost'] in junos evolved device: False
The output of facts['vmhost'] in junos evolved device after refresh: False
The output of facts['vmhost'] in non vmhost supported device: False
The output of facts['vmhost'] in non vmhost supported device after refresh: False
Unit test cases: