mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 04:40:22 -07:00
refactors nxos_vrf_af module (#28208)
* refactors nxos_vrf_af module fixes #27595 * fix up unit test cases * add commands to result dict * add route-target on afi create * adds deprecation note to safi argument
This commit is contained in:
parent
37524b798d
commit
6886153b54
2 changed files with 45 additions and 137 deletions
|
@ -31,8 +31,6 @@ class TestNxosVrfafModule(TestNxosModule):
|
|||
module = nxos_vrf_af
|
||||
|
||||
def setUp(self):
|
||||
self.mock_run_commands = patch('ansible.modules.network.nxos.nxos_vrf_af.run_commands')
|
||||
self.run_commands = self.mock_run_commands.start()
|
||||
self.mock_load_config = patch('ansible.modules.network.nxos.nxos_vrf_af.load_config')
|
||||
self.load_config = self.mock_load_config.start()
|
||||
|
||||
|
@ -40,7 +38,6 @@ class TestNxosVrfafModule(TestNxosModule):
|
|||
self.get_config = self.mock_get_config.start()
|
||||
|
||||
def tearDown(self):
|
||||
self.mock_run_commands.stop()
|
||||
self.mock_load_config.stop()
|
||||
self.mock_get_config.stop()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue