Skip to content

Commit

Permalink
Add initial interface for thunderbolt
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelgaspar committed Aug 24, 2024
1 parent da64a72 commit 47a1128
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions interface-definitions/interfaces_thunderbolt.xml.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?xml version="1.0"?>
<interfaceDefinition>
<node name="interfaces">
<children>
<tagNode name="thunderbolt" owner="${vyos_conf_scripts_dir}/interfaces.py">
<properties>
<help>Thunderbolt Interface</help>
<priority>330</priority>
<constraint>
<regex>thunderbolt[0-9]+</regex>
</constraint>
<constraintErrorMessage>Thunderbolt interface must be named thunderboltN</constraintErrorMessage>
<valueHelp>
<format>thunderboltN</format>
<description>thunderbolt interface name</description>
</valueHelp>
</properties>
<children>
#include <include/interface/address-ipv4-ipv6-dhcp.xml.i>
#include <include/generic-description.xml.i>
#include <include/interface/dhcp-options.xml.i>
#include <include/interface/dhcpv6-options.xml.i>
#include <include/interface/disable-link-detect.xml.i>
#include <include/interface/disable.xml.i>
#include <include/interface/vrf.xml.i>
#include <include/interface/mirror.xml.i>
#include <include/interface/ipv4-options.xml.i>
#include <include/interface/ipv6-options.xml.i>
#include <include/interface/mac.xml.i>
#include <include/interface/mtu-68-16000.xml.i>
<leafNode name="mtu">
<defaultValue>1500</defaultValue>
</leafNode>
#include <include/interface/redirect.xml.i>
#include <include/interface/vif-s.xml.i>
#include <include/interface/vif.xml.i>
</children>
</tagNode>
</children>
</node>
</interfaceDefinition>

0 comments on commit 47a1128

Please sign in to comment.