summaryrefslogtreecommitdiff
path: root/op-mode-definitions/show-ip-route.xml.in
blob: bbac433c7c80ef66fd38ff70a8bdf8d1bbf1ce2c (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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
<?xml version="1.0"?>
<interfaceDefinition>
  <node name="show">
    <children>
      <node name="ip">
        <properties>
          <help>Show IPv4 routing information</help>
        </properties>
        <children>
          <node name="route">
            <properties>
              <help>Show IP routes</help>
            </properties>
            <command>vtysh -c "show ip route"</command>
            <children>
              <virtualTagNode>
                <properties>
                  <help>Show IP routes of specified IP address or prefix</help>
                  <completionHelp>
                    <list>&lt;x.x.x.x&gt; &lt;x.x.x.x/x&gt;</list>
                  </completionHelp>
                </properties>
                <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
                <children>
                  <leafNode name="longer-prefixes">
                    <properties>
                      <help>Show longer prefixes of routes for specified prefix</help>
                    </properties>
                    <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
                  </leafNode>
                </children>
              </virtualTagNode>
              #include <include/show-route-bgp.xml.i>
              <tagNode name="cache">
                <properties>
                  <help>Show kernel route cache for a given route</help>
                  <completionHelp>
                    <list>&lt;x.x.x.x&gt; &lt;x.x.x.x/x&gt;</list>
                  </completionHelp>
                </properties>
                <standalone>
                  <help>Show kernel route cache</help>
                  <command>ip -s route list cache</command>
                </standalone>
                <command>ip -s route list cache $5</command>
              </tagNode>
              #include <include/show-route-connected.xml.i>
              <tagNode name="forward">
                <properties>
                  <help>Show kernel route table for a given route</help>
                  <completionHelp>
                    <list>&lt;x.x.x.x&gt; &lt;x.x.x.x/x&gt;</list>
                  </completionHelp>
                </properties>
                <standalone>
                  <help>Show kernel route table</help>
                  <command>ip route list</command>
                </standalone>
                <command>ip -s route list $5</command>
              </tagNode>
              #include <include/show-route-isis.xml.i>
              #include <include/show-route-openfabric.xml.i>
              #include <include/show-route-kernel.xml.i>
              #include <include/show-route-ospf.xml.i>
              #include <include/show-route-rip.xml.i>
              #include <include/show-route-static.xml.i>
              #include <include/show-route-supernets-only.xml.i>
              #include <include/show-route-table.xml.i>
              #include <include/show-route-tag.xml.i>
              <node name="summary">
                <properties>
                  <help>Summary of all routes</help>
                </properties>
                <command>${vyos_op_scripts_dir}/route.py show_summary --family inet</command>
                <children>
                  <tagNode name="table">
                    <properties>
                      <help>Summary of routes in a particular table</help>
                    </properties>
                    <command>${vyos_op_scripts_dir}/route.py show_summary --family inet --table $6</command>
                  </tagNode>
                </children>
              </node>
              <tagNode name="vrf">
                <properties>
                  <help>Show IP routes in VRF</help>
                  <completionHelp>
                    <list>all</list>
                    <path>vrf name</path>
                  </completionHelp>
                </properties>
                <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
                <children>
                  <node name="summary">
                    <properties>
                      <help>Summary of all routes in the VRF</help>
                    </properties>
                    <command>${vyos_op_scripts_dir}/route.py show_summary --family inet --vrf $5</command>
                  </node>
                  #include <include/show-route-bgp.xml.i>
                  #include <include/show-route-connected.xml.i>
                  #include <include/show-route-isis.xml.i>
                  #include <include/show-route-kernel.xml.i>
                  #include <include/show-route-ospf.xml.i>
                  #include <include/show-route-rip.xml.i>
                  #include <include/show-route-static.xml.i>
                  #include <include/show-route-supernets-only.xml.i>
                  #include <include/show-route-tag.xml.i>
                  <virtualTagNode>
                    <properties>
                      <help>Show IP routes of specified IP address or prefix</help>
                      <completionHelp>
                        <list>&lt;x.x.x.x&gt; &lt;x.x.x.x/x&gt;</list>
                      </completionHelp>
                    </properties>
                    <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
                    <children>
                      <leafNode name="longer-prefixes">
                        <properties>
                          <help>Show longer prefixes of routes for specified prefix</help>
                        </properties>
                        <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
                      </leafNode>
                    </children>
                  </virtualTagNode>
                </children>
              </tagNode>
            </children>
          </node>
        </children>
      </node>
    </children>
  </node>
</interfaceDefinition>