summaryrefslogtreecommitdiff
path: root/op-mode-definitions/show-vrf.xml.in
blob: c186498441d36023d71f071e5f107afabcade250 (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
<?xml version="1.0"?>
<interfaceDefinition>
  <node name="show">
    <children>
      <node name="vrf">
        <properties>
          <help>Show VRF (Virtual Routing and Forwarding) information</help>
        </properties>
        <command>${vyos_op_scripts_dir}/vrf.py show</command>
        <children>
          <leafNode name="vni">
            <properties>
              <help>Show information on VRF/VXLAN VNI mapping</help>
            </properties>
            <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
          </leafNode>
        </children>
      </node>
      <tagNode name="vrf">
        <properties>
          <help>Show information on specific VRF instance</help>
          <completionHelp>
            <path>vrf name</path>
          </completionHelp>
        </properties>
        <command>${vyos_op_scripts_dir}/vrf.py show --name="$3"</command>
        <children>
          <leafNode name="processes">
            <properties>
              <help>Shows all process ids associated with VRF</help>
            </properties>
            <command>ip vrf pids "$3"</command>
          </leafNode>
          <leafNode name="vni">
            <properties>
              <help>Show VXLAN VNI association</help>
            </properties>
            <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
          </leafNode>
        </children>
      </tagNode>
    </children>
  </node>
</interfaceDefinition>