mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
vyos_config 2.3 (#20577)
* Rename vyos2 over vyos * Update vyos_config to LocalAnsibleModule Change result key 'updates' -> 'commands' vyos_config is supported by core * vyos_config tests * Enable bracket config use * Sanitize config before use
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
set system host-name router
|
||||
set interfaces ethernet eth0 address '1.2.3.4/24'
|
||||
set interfaces ethernet eth0 description 'test string'
|
||||
set interfaces ethernet eth1 address '6.7.8.9/24'
|
||||
set interfaces ethernet eth1 description 'test string'
|
||||
set interfaces ethernet eth1 disable
|
||||
@@ -0,0 +1,5 @@
|
||||
set system host-name foo
|
||||
delete interfaces ethernet eth0 address
|
||||
set interfaces ethernet eth1 address '6.7.8.9/24'
|
||||
set interfaces ethernet eth1 description 'test string'
|
||||
set interfaces ethernet eth1 disable
|
||||
@@ -0,0 +1,13 @@
|
||||
interfaces {
|
||||
ethernet eth0 {
|
||||
address 10.10.10.10/24
|
||||
}
|
||||
ethernet eth1 {
|
||||
address 6.7.8.9/24
|
||||
description test string
|
||||
disable
|
||||
}
|
||||
}
|
||||
system {
|
||||
host-name foo
|
||||
}
|
||||
Reference in New Issue
Block a user