diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-03-02 23:17:55 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-03-03 00:16:49 +0100 |
commit | 93ce06e24a5d527bcae5315aefbc25533d2a7f07 (patch) | |
tree | 6a7b82fd96f59e0757762f56aa32925b5a3a8992 /python | |
parent | 585112ca7a93d26d54442bb827688f24c5c2fa38 (diff) | |
download | vyos-1x-93ce06e24a5d527bcae5315aefbc25533d2a7f07.tar.gz vyos-1x-93ce06e24a5d527bcae5315aefbc25533d2a7f07.zip |
smoketest: vxlan: extend testcase to verify additional tunnel parameters
Verify proper configuration of VXLAN parameters for
- source-interface
- source-address
- remote
- vni
- group
Before it was only verified if the VXLAN tunnel interface was configured
at all but not if the parameters are correct, too.
Diffstat (limited to 'python')
-rw-r--r-- | python/vyos/ifconfig/vxlan.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/python/vyos/ifconfig/vxlan.py b/python/vyos/ifconfig/vxlan.py index 6556aff5a..d73fb47b8 100644 --- a/python/vyos/ifconfig/vxlan.py +++ b/python/vyos/ifconfig/vxlan.py @@ -14,7 +14,7 @@ # License along with this library. If not, see <http://www.gnu.org/licenses/>. from vyos import ConfigError -from vyos.ifconfig.interface import Interface +from vyos.ifconfig import Interface from vyos.util import dict_search @Interface.register @@ -77,4 +77,5 @@ class VXLANIf(Interface): cmd += f' {iproute2_key} {tmp}' self._cmd(cmd.format(**self.config)) + # interface is always A/D down. It needs to be enabled explicitly self.set_admin_state('down') |