summaryrefslogtreecommitdiff
path: root/op-mode-definitions/zone-policy.xml.in
blob: c4b02bceeb7081b90c4b90fc9f17dc12bcb93160 (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
<?xml version="1.0"?>
<interfaceDefinition>
  <node name="show">
    <children>
      <node name="zone-policy">
        <properties>
          <help>Show zone policy information</help>
        </properties>
        <children>
          <tagNode name="zone">
            <properties>
              <help>Show summary of zone policy for a specific zone</help>
              <completionHelp>
                <path>zone-policy zone</path>
              </completionHelp>
            </properties>
            <command>sudo ${vyos_op_scripts_dir}/zone_policy.py --action show --name $4</command>
          </tagNode>
        </children>
        <command>sudo ${vyos_op_scripts_dir}/zone_policy.py --action show</command>
      </node>
    </children>
  </node>
</interfaceDefinition>