1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/test/units/modules/network/junos
dteach ca56a248d8 junos_facts: Add Hardware facts. (#30304)
* Add Routing Engine Facts

 - Map routing engine output information to routing_engines facts dict.
 - Add fact 'has_2RE', which is a quick way to determine how many REs
   the chassis has.

* Fix a typo

* Fix more typos

* Add slot number to routing_engine dict

* Add facts about the installed chassis modules

* Fix typo

* Fixed another typo

* Fix Path

* Change path again.

* More Typos

* Add some deubgging

* Add additional information for hardware components.

 - Return information about the Routing Engines.
 - Return a fact to easily determine if the device
   has two routing engines.
 - Return information about the hardware modules.

* Addressed pep8 stardard failures.

* Add unit test fixtures.

* Rename fixture.

* Fix unit test failures.

 - Rename the fixture file to what the unit test expects.
 - Strip out junos namespace attributes.
Rename file to match what the unit test expects.

* Scrubbed the routing engine serial numbers.

* Add unit test facts for new tests.

 - Add unit test for ansible_net_routing_engines fact
 - Add unit test for ansible_net_modules fact
 - Add unit test for ansible_net_has_2RE

* Fixed spacing.
2017-09-20 12:43:07 +05:30
..
fixtures junos_facts: Add Hardware facts. (#30304) 2017-09-20 12:43:07 +05:30
__init__.py Add junos_command module unit test (#23819) 2017-04-21 18:23:40 +05:30
junos_module.py Fix junos unit test failures (#26676) 2017-07-12 08:36:16 -07:00
test_junos_command.py Fix junos unit test failures (#26676) 2017-07-12 08:36:16 -07:00
test_junos_config.py junos_linkagg implementation and junos modules refactor (#26587) 2017-07-11 09:52:53 +05:30
test_junos_facts.py junos_facts: Add Hardware facts. (#30304) 2017-09-20 12:43:07 +05:30
test_junos_netconf.py Fix junos unit test failures (#26676) 2017-07-12 08:36:16 -07:00
test_junos_package.py Fix junos unit test failures (#26676) 2017-07-12 08:36:16 -07:00
test_junos_rpc.py Fix junos unit test failures (#26676) 2017-07-12 08:36:16 -07:00