summaryrefslogtreecommitdiff
path: root/op-mode-definitions/show-conntrack.xml.in
blob: 4cdcffcdb34e684928c5a03bd7535f6f85afb65e (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
<?xml version="1.0"?>
<interfaceDefinition>
  <node name="show">
    <children>
      <node name="conntrack">
        <properties>
          <help>Show conntrack tables entries</help>
        </properties>
        <children>
          <node name="statistics">
            <properties>
              <help>Show conntrack statistics</help>
            </properties>
            <command>sudo ${vyos_op_scripts_dir}/conntrack.py show_statistics</command>
          </node>
          <node name="table">
            <properties>
              <help>Show conntrack entries for table</help>
            </properties>
            <children>
              <node name="ipv4">
                <properties>
                  <help>Show conntrack entries for IPv4 protocol</help>
                </properties>
                <command>sudo ${vyos_op_scripts_dir}/conntrack.py show --family inet</command>
              </node>
              <node name="ipv6">
                <properties>
                  <help>Show conntrack entries for IPv6 protocol</help>
                </properties>
                <command>sudo ${vyos_op_scripts_dir}/conntrack.py show --family inet6</command>
              </node>
            </children>
          </node>
        </children>
      </node>
    </children>
  </node>
</interfaceDefinition>