summaryrefslogtreecommitdiff
path: root/op-mode-definitions/conntrack-sync.xml.in
blob: a66331f27ef2f7ac8460f4c34d3b37c3c76bd7d7 (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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<?xml version="1.0"?>
<interfaceDefinition>
  <node name="reset">
    <children>
      <node name="conntrack-sync">
        <properties>
          <help>Reset connection syncing parameters</help>
        </properties>
        <children>
          <leafNode name="external-cache">
            <properties>
              <help>Reset external cache and request resync with other systems</help>
            </properties>
            <command>sudo ${vyos_op_scripts_dir}/conntrack_sync.py reset_external_cache</command>
          </leafNode>
          <leafNode name="internal-cache">
            <properties>
              <help>Reset internal cache and request resync with other systems</help>
            </properties>
            <command>sudo ${vyos_op_scripts_dir}/conntrack_sync.py reset_internal_cache</command>
          </leafNode>
        </children>
      </node>
    </children>
  </node>
  <node name="restart">
    <children>
      <leafNode name="conntrack-sync">
        <properties>
          <help>Restart the connection tracking synchronization service</help>
        </properties>
        <command>sudo ${vyos_op_scripts_dir}/conntrack_sync.py restart</command>
      </leafNode>
    </children>
  </node>
  <node name="show">
    <children>
      <node name="conntrack-sync">
        <properties>
          <help>Show connection tracking synchronization information</help>
        </properties>
        <children>
          <node name="cache">
            <properties>
              <help>Show connection tracking cache entries</help>
            </properties>
            <children>
              <node name="external">
                <properties>
                  <help>Show external connection tracking cache entries</help>
                </properties>
                <command>sudo ${vyos_op_scripts_dir}/conntrack_sync.py show_external_cache</command>
                <children>
                  <leafNode name="main">
                    <properties>
                      <help>Show external main connection tracking cache entries</help>
                    </properties>
                    <command>sudo ${vyos_op_scripts_dir}/conntrack_sync.py show_external_cache</command>
                  </leafNode>
                  <leafNode name="expect">
                    <properties>
                      <help>Show external expect connection tracking cache entries</help>
                    </properties>
                    <command>sudo ${vyos_op_scripts_dir}/conntrack_sync.py show_external_expect</command>
                  </leafNode>
                </children>
              </node>
              <node name="internal">
                <properties>
                  <help>Show internal connection tracking cache entries</help>
                </properties>
                <command>sudo ${vyos_op_scripts_dir}/conntrack_sync.py show_internal_cache</command>
                <children>
                  <leafNode name="main">
                    <properties>
                      <help>Show internal main connection tracking cache entries</help>
                    </properties>
                    <command>sudo ${vyos_op_scripts_dir}/conntrack_sync.py show_internal_cache</command>
                  </leafNode>
                  <leafNode name="expect">
                    <properties>
                      <help>Show internal expect connection tracking cache entries</help>
                    </properties>
                    <command>sudo ${vyos_op_scripts_dir}/conntrack_sync.py show_internal_expect</command>
                  </leafNode>
                </children>
              </node>
            </children>
          </node>
          <leafNode name="statistics">
            <properties>
              <help>Show connection syncing statistics</help>
            </properties>
            <command>sudo ${vyos_op_scripts_dir}/conntrack_sync.py show_statistics</command>
          </leafNode>
          <leafNode name="status">
            <properties>
              <help>Show conntrack-sync status</help>
            </properties>
            <command>sudo ${vyos_op_scripts_dir}/conntrack_sync.py show_status</command>
          </leafNode>
        </children>
      </node>
    </children>
  </node>
</interfaceDefinition>