summaryrefslogtreecommitdiff
path: root/interface-definitions/interfaces-pseudo-ethernet.xml.in
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-07-19 22:25:12 +0200
committerChristian Poessinger <christian@poessinger.com>2020-07-25 15:36:07 +0200
commitc8cd7951e38ae2819d4c9f87089fcf59b7e6b70d (patch)
tree85db9e0fa8eddbecbb644cefa2299fa2fc0ea181 /interface-definitions/interfaces-pseudo-ethernet.xml.in
parenta25d7095e009469d8ef60b63deddd94d30921723 (diff)
downloadvyos-1x-c8cd7951e38ae2819d4c9f87089fcf59b7e6b70d.tar.gz
vyos-1x-c8cd7951e38ae2819d4c9f87089fcf59b7e6b70d.zip
pseudo-ethernet: ifconfig: T2653: move to get_config_dict()
The current VyOS CLI parser code written in Python contains a ton of duplicates which I can also hold myself accountable for - or maybe mainly me - depends on the angle of judge. While providing a new update() method in vyos.ifconfig.interfaces() this is extended for pdeudo-ethernet interfaces in the derived class.
Diffstat (limited to 'interface-definitions/interfaces-pseudo-ethernet.xml.in')
-rw-r--r--interface-definitions/interfaces-pseudo-ethernet.xml.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/interface-definitions/interfaces-pseudo-ethernet.xml.in b/interface-definitions/interfaces-pseudo-ethernet.xml.in
index d5f9ca661..0ef45e2c2 100644
--- a/interface-definitions/interfaces-pseudo-ethernet.xml.in
+++ b/interface-definitions/interfaces-pseudo-ethernet.xml.in
@@ -70,6 +70,7 @@
</constraint>
<constraintErrorMessage>mode must be private, vepa, bridge or passthru</constraintErrorMessage>
</properties>
+ <defaultValue>private</defaultValue>
</leafNode>
#include <include/vif-s.xml.i>
#include <include/vif.xml.i>