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:
Nathaniel Case
2017-02-02 13:12:26 -05:00
committed by GitHub
parent 1e2afd57ae
commit d87fc9605f
8 changed files with 296 additions and 242 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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
}