summaryrefslogtreecommitdiff
path: root/op-mode-definitions/show-config-sync.xml.in
blob: 7c39fa64ece3fbfd00578308095733b8884e4c0c (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
<?xml version="1.0" encoding="UTF-8"?>
<interfaceDefinition>
  <node name="show">
    <children>
      <node name="configuration">
        <children>
          <node name="secondary">
            <properties>
              <help>Show configuration synchronization information (config-sync service)</help>
            </properties>
            <children>
              <node name="sync">
                <properties>
                  <help>Show differences between local configuration and remote VyOS instance</help>
                </properties>
                <!-- No source, no section, no commands -->
                <command>${vyos_op_scripts_dir}/config_sync.py show_sync_diff</command>
                <children>
                  <!-- Optional source -->
                  <node name="running">
                    <properties>
                      <help>Compare with local running configuration (default)</help>
                    </properties>
                    <command>${vyos_op_scripts_dir}/config_sync.py show_sync_diff --source="running"</command>
                    <!-- 'running' source with section -->
                    <children>
                      #include <include/show-config-sync-section.xml.i>
                    </children>
                  </node>
                  <node name="candidate">
                    <properties>
                      <help>Compare with local candidate configuration</help>
                    </properties>
                    <command>${vyos_op_scripts_dir}/config_sync.py show_sync_diff --source="candidate"</command>
                    <!-- 'candidate' source with section -->
                    <children>
                      #include <include/show-config-sync-section.xml.i>
                    </children>
                  </node>
                  <node name="saved">
                    <properties>
                      <help>Compare with local saved configuration</help>
                    </properties>
                    <command>${vyos_op_scripts_dir}/config_sync.py show_sync_diff --source="saved"</command>
                    <!-- 'saved' source with section -->
                    <children>
                      #include <include/show-config-sync-section.xml.i>
                    </children>
                  </node>
                  <!-- The same thing, but using the command form -->
                  <node name="commands">
                    <properties>
                      <help>Show the difference as commands</help>
                    </properties>
                    <command>${vyos_op_scripts_dir}/config_sync.py show_sync_diff --commands</command>
                    <children>
                      <!-- Optional source -->
                      <node name="running">
                        <properties>
                          <help>Compare with local running configuration (default)</help>
                        </properties>
                        <command>${vyos_op_scripts_dir}/config_sync.py show_sync_diff --commands --source="running"</command>
                        <!-- 'running' source with section -->
                        <children>
                          #include <include/show-config-sync-section-commands.xml.i>
                        </children>
                      </node>
                      <node name="candidate">
                        <properties>
                          <help>Compare with local candidate configuration</help>
                        </properties>
                        <command>${vyos_op_scripts_dir}/config_sync.py show_sync_diff --commands --source="candidate"</command>
                        <!-- 'candidate' source with section -->
                        <children>
                          #include <include/show-config-sync-section-commands.xml.i>
                        </children>
                      </node>
                      <node name="saved">
                        <properties>
                          <help>Compare with local saved configuration</help>
                        </properties>
                        <command>${vyos_op_scripts_dir}/config_sync.py show_sync_diff --commands --source="saved"</command>
                        <!-- 'saved' source with section -->
                        <children>
                          #include <include/show-config-sync-section-commands.xml.i>
                        </children>
                      </node>
                    </children>
                  </node>
                </children>
              </node>
            </children>
          </node>
        </children>
      </node>
    </children>
  </node>
</interfaceDefinition>