diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-11-24 19:56:58 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2022-11-24 19:56:58 +0100 |
commit | 1e6710d8e193cb919b50da336a27378e130c54b0 (patch) | |
tree | bfde52a5efe35a4653a9077c7ffeed76e3a4bd9a /interface-definitions/interfaces-virtual-ethernet.xml.in | |
parent | ccc0f71690f3300e32ce954444ece89010a2d51c (diff) | |
parent | d611ad834e1b30e73bf82b1733bbd78831152840 (diff) | |
download | vyos-1x-1e6710d8e193cb919b50da336a27378e130c54b0.tar.gz vyos-1x-1e6710d8e193cb919b50da336a27378e130c54b0.zip |
Merge branch 'T4825' of https://github.com/sever-sever/vyos-1x into t4825-veth
* 'T4825' of https://github.com/sever-sever/vyos-1x:
T4825: Add basic smoketest for veth interfaces
T4825: Add interface type veth
Diffstat (limited to 'interface-definitions/interfaces-virtual-ethernet.xml.in')
-rw-r--r-- | interface-definitions/interfaces-virtual-ethernet.xml.in | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/interface-definitions/interfaces-virtual-ethernet.xml.in b/interface-definitions/interfaces-virtual-ethernet.xml.in new file mode 100644 index 000000000..3b78b3637 --- /dev/null +++ b/interface-definitions/interfaces-virtual-ethernet.xml.in @@ -0,0 +1,36 @@ +<?xml version="1.0"?> +<interfaceDefinition> + <node name="interfaces"> + <children> + <tagNode name="virtual-ethernet" owner="${vyos_conf_scripts_dir}/interfaces-virtual-ethernet.py"> + <properties> + <help>Virtual Ethernet Interface (veth)</help> + <priority>300</priority> + <constraint> + <regex>veth[0-9]+</regex> + </constraint> + <constraintErrorMessage>Virutal Ethernet interface must be named vethN</constraintErrorMessage> + <valueHelp> + <format>vethN</format> + <description>Virtual Ethernet interface name</description> + </valueHelp> + </properties> + <children> + #include <include/interface/address-ipv4-ipv6-dhcp.xml.i> + #include <include/interface/description.xml.i> + #include <include/interface/disable.xml.i> + #include <include/interface/vrf.xml.i> + <leafNode name="peer-name"> + <properties> + <help>Virtual ethernet peer interface name</help> + <constraint> + <regex>veth[0-9]+</regex> + </constraint> + <constraintErrorMessage>Virutal Ethernet interface must be named vethN</constraintErrorMessage> + </properties> + </leafNode> + </children> + </tagNode> + </children> + </node> +</interfaceDefinition> |