summaryrefslogtreecommitdiff
path: root/interface-definitions/include/firewall/inbound-interface-no-group.xml.i
blob: bcd4c9570f04b3f0f5a40b14186e4c7c6ba268b0 (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
<!-- include start from firewall/inbound-interface-no-group.xml.i -->
<node name="inbound-interface">
  <properties>
    <help>Match inbound-interface</help>
  </properties>
  <children>
    <leafNode name="name">
      <properties>
        <help>Match interface</help>
        <completionHelp>
          <script>${vyos_completion_dir}/list_interfaces</script>
          <path>vrf name</path>
        </completionHelp>
        <valueHelp>
          <format>txt</format>
          <description>Interface name</description>
        </valueHelp>
        <valueHelp>
          <format>txt*</format>
          <description>Interface name with wildcard</description>
        </valueHelp>
        <valueHelp>
          <format>!txt</format>
          <description>Inverted interface name to match</description>
        </valueHelp>
        <constraint>
          <regex>(\!?)(bond|br|dum|en|ersp|eth|gnv|ifb|lan|l2tp|l2tpeth|macsec|peth|ppp|pppoe|pptp|sstp|tun|veth|vti|vtun|vxlan|wg|wlan|wwan)([0-9]?)(\*?)(.+)?|(\!?)lo</regex>
          <validator name="vrf-name"/>
        </constraint>
      </properties>
    </leafNode>
  </children>
</node>
<!-- include end -->