summaryrefslogtreecommitdiff
path: root/interface-definitions/vpp_interface_xconnnect.xml.in
blob: 3480a0d417cc2581504dd36cb4459d0a73bf57df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?xml version="1.0"?>
<interfaceDefinition>
  <node name='interfaces'>
    <children>
      <node name='vpp'>
        <children>
          <tagNode name="xconnect" owner="${vyos_conf_scripts_dir}/vpp_interfaces_xconnect.py">
            <properties>
              <help>Layer 2 cross-connect</help>
              <priority>325</priority>
              <constraint>
                <regex>vppxcon[0-9]+</regex>
              </constraint>
              <constraintErrorMessage>Cross-connect interface must be named vppxconN</constraintErrorMessage>
              <valueHelp>
                <format>vppxconN</format>
                <description>Cross-connect interface name</description>
              </valueHelp>
            </properties>
            <children>
              #include <include/generic-description.xml.i>
              #include <include/interface/disable.xml.i>
              <node name="member">
                <properties>
                  <help>Cross-connect pair member interfaces</help>
                </properties>
                <children>
                  <leafNode name="interface">
                    <properties>
                      <help>Member interface name</help>
                      <completionHelp>
                        <script>${vyos_completion_dir}/list_interfaces --bridgeable</script>
                      </completionHelp>
                      <valueHelp>
                        <format>txt</format>
                        <description>Interface name</description>
                      </valueHelp>
                      <multi/>
                    </properties>
                  </leafNode>
                </children>
              </node>
            </children>
          </tagNode>
        </children>
      </node>
    </children>
  </node>
</interfaceDefinition>