summaryrefslogtreecommitdiff
path: root/op-mode-definitions/vpp_acl.xml.in
blob: 20b7746dba327dade126ad052d95e2c3bdce0dc8 (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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?xml version="1.0"?>
<interfaceDefinition>
  <node name="show">
    <children>
      <node name="vpp">
        <children>
          <node name="acl">
            <properties>
              <help>Show VPP ACL information</help>
            </properties>
            <children>
              <node name="ip">
                <properties>
                  <help>Show VPP ACL by IPv4/IPv6</help>
                </properties>
                <children>
                  <tagNode name="tag-name">
                    <properties>
                      <help>Show specified VPP ACL</help>
                      <completionHelp>
                        <path>vpp acl ip tag-name</path>
                      </completionHelp>
                    </properties>
                    <command>sudo ${vyos_op_scripts_dir}/vpp_acl.py show_ip_acls --tag-name="$6"</command>
                  </tagNode>
                  <node name="interface">
                    <properties>
                      <help>Show VPP ACL interfaces</help>
                    </properties>
                    <command>sudo ${vyos_op_scripts_dir}/vpp_acl.py show_interfaces</command>
                  </node>
                </children>
                <command>sudo ${vyos_op_scripts_dir}/vpp_acl.py show_ip_acls</command>
              </node>
              <node name="mac">
                <properties>
                  <help>Show VPP ACL by mac</help>
                </properties>
                <children>
                  <tagNode name="tag-name">
                    <properties>
                      <help>Show specified VPP ACL</help>
                      <completionHelp>
                        <path>vpp acl mac tag-name</path>
                      </completionHelp>
                    </properties>
                    <command>sudo ${vyos_op_scripts_dir}/vpp_acl.py show_mac_acls --tag-name="$6"</command>
                  </tagNode>
                  <node name="interface">
                    <properties>
                      <help>Show VPP ACL interfaces</help>
                    </properties>
                    <command>sudo ${vyos_op_scripts_dir}/vpp_acl.py show_mac_interfaces</command>
                  </node>
                </children>
                <command>sudo ${vyos_op_scripts_dir}/vpp_acl.py show_mac_acls</command>
              </node>
            </children>
            <command>sudo ${vyos_op_scripts_dir}/vpp_acl.py show_all_acls</command>
          </node>
        </children>
      </node>
    </children>
  </node>
</interfaceDefinition>