mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
Add vyos_interface default description (#27029)
* Add default description string to vyos_interface * If `state=up` it should remove the `disable` configuration for interface. However, if no other interface parameter is configured this ends up deleting the interface itself which is not the desired behaviour. Hence adding a default description field to avoid such scenario's. * Minor changes * Add default description to aggregate
This commit is contained in:
@@ -49,7 +49,7 @@
|
||||
vyos_interface:
|
||||
name: eth1
|
||||
state: present
|
||||
description: test-interface
|
||||
description: test-interface-1
|
||||
speed: 100
|
||||
duplex: half
|
||||
mtu: 256
|
||||
@@ -65,7 +65,7 @@
|
||||
vyos_interface:
|
||||
name: eth1
|
||||
state: present
|
||||
description: test-interface-1
|
||||
description: test-interface-2
|
||||
speed: 1000
|
||||
duplex: full
|
||||
mtu: 512
|
||||
@@ -75,7 +75,7 @@
|
||||
- assert:
|
||||
that:
|
||||
- 'result.changed == true'
|
||||
- '"set interfaces ethernet eth1 description test-interface-1" in result.commands'
|
||||
- '"set interfaces ethernet eth1 description test-interface-2" in result.commands'
|
||||
- '"set interfaces ethernet eth1 speed 1000" in result.commands'
|
||||
- '"set interfaces ethernet eth1 duplex full" in result.commands'
|
||||
- '"set interfaces ethernet eth1 mtu 512" in result.commands'
|
||||
|
||||
Reference in New Issue
Block a user