mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-06-30 07:50:43 +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:
parent
1e2afd57ae
commit
d87fc9605f
8 changed files with 296 additions and 242 deletions
|
|
@ -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
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue