mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
refactors ios_config to use network_cli plugin (#20042)
* updates the ios_config module to use the network_cli plugin * updates the local action plugin to derive from network * add unit test cases for ios_config
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
!
|
||||
hostname router
|
||||
!
|
||||
interface GigabitEthernet0/0
|
||||
ip address 1.2.3.4 255.255.255.0
|
||||
description test string
|
||||
!
|
||||
interface GigabitEthernet0/1
|
||||
ip address 6.7.8.9 255.255.255.0
|
||||
description test string
|
||||
shutdown
|
||||
!
|
||||
@@ -0,0 +1,13 @@
|
||||
!
|
||||
hostname router
|
||||
!
|
||||
interface GigabitEthernet0/0
|
||||
ip address 1.2.3.4 255.255.255.0
|
||||
description test string
|
||||
no shutdown
|
||||
!
|
||||
interface GigabitEthernet0/1
|
||||
ip address 6.7.8.9 255.255.255.0
|
||||
description test string
|
||||
shutdown
|
||||
!
|
||||
11
test/units/modules/network/ios/fixtures/ios_config_src.cfg
Normal file
11
test/units/modules/network/ios/fixtures/ios_config_src.cfg
Normal file
@@ -0,0 +1,11 @@
|
||||
!
|
||||
hostname foo
|
||||
!
|
||||
interface GigabitEthernet0/0
|
||||
no ip address
|
||||
!
|
||||
interface GigabitEthernet0/1
|
||||
ip address 6.7.8.9 255.255.255.0
|
||||
description test string
|
||||
shutdown
|
||||
!
|
||||
Reference in New Issue
Block a user