mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-23 04:24:00 -07:00
adds system_mtu argument to nxos_system (#21970)
* updates argument_spec * adds unit test case
This commit is contained in:
parent
8dbb12a9c4
commit
216877c6ca
3 changed files with 28 additions and 2 deletions
|
@ -1,4 +1,5 @@
|
|||
hostname nxos01
|
||||
system jumbomtu 1500
|
||||
!
|
||||
no ip domain-lookup
|
||||
ip domain-name ansible.com
|
||||
|
|
|
@ -109,6 +109,11 @@ class TestNxosSystemModule(TestNxosModule):
|
|||
'vrf context management', 'ip name-server 1.2.3.4', 'exit']
|
||||
self.execute_module(changed=True, commands=commands)
|
||||
|
||||
def test_nxos_system_system_mtu(self):
|
||||
set_module_args(dict(system_mtu=2000))
|
||||
commands = ['system jumbomtu 2000']
|
||||
self.execute_module(changed=True, commands=commands)
|
||||
|
||||
def test_nxos_system_state_absent(self):
|
||||
set_module_args(dict(state='absent'))
|
||||
commands = ['no hostname', 'no ip domain-name ansible.com',
|
||||
|
@ -118,7 +123,8 @@ class TestNxosSystemModule(TestNxosModule):
|
|||
'vrf context management', 'no ip domain-list redhat.com', 'exit',
|
||||
'no ip name-server 8.8.8.8', 'no ip name-server 172.26.1.1',
|
||||
'vrf context management', 'no ip name-server 8.8.8.8', 'exit',
|
||||
'vrf context management', 'no ip name-server 172.26.1.1', 'exit']
|
||||
'vrf context management', 'no ip name-server 172.26.1.1', 'exit',
|
||||
'no system jumbomtu']
|
||||
self.execute_module(changed=True, commands=commands)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue