summaryrefslogtreecommitdiff
path: root/op-mode-definitions/include/bgp/afi-ipv4-ipv6-common.xml.i
blob: 7dbc4fde574fc6c59b2e066693adfa807cb1953c (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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
<!-- included start from bgp/afi-ipv4-ipv6-common.xml.i -->
<node name="community">
  <properties>
    <help>Display routes matching the community</help>
  </properties>
  <children>
    <leafNode name="accept-own">
      <properties>
        <help>Should accept local VPN route if exported and imported into different VRF (well-known community)</help>
      </properties>
      <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
    </leafNode>
    <leafNode name="accept-own-nexthop">
      <properties>
        <help>Should accept VPN route with local nexthop (well-known community)</help>
      </properties>
      <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
    </leafNode>
    <leafNode name="blackhole">
      <properties>
        <help>Inform EBGP peers to blackhole traffic to prefix (well-known community)</help>
      </properties>
      <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
    </leafNode>
    #include <include/bgp/exact-match.xml.i>
    <leafNode name="graceful-shutdown">
      <properties>
        <help>Graceful shutdown (well-known community)</help>
      </properties>
      <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
    </leafNode>
    <leafNode name="llgr-stale">
      <properties>
        <help>Staled Long-lived Graceful Restart VPN route (well-known community)</help>
      </properties>
      <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
    </leafNode>
    <leafNode name="local-AS">
      <properties>
        <help>Do not send outside local AS (well-known community)</help>
      </properties>
      <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
    </leafNode>
    <leafNode name="no-advertise">
      <properties>
        <help>Do not advertise to any peer (well-known community)</help>
      </properties>
      <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
    </leafNode>
    <leafNode name="no-export">
      <properties>
        <help>Do not export to next AS (well-known community)</help>
      </properties>
      <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
    </leafNode>
    <leafNode name="no-llgr">
      <properties>
        <help>Removed because Long-lived Graceful Restart was not enabled for VPN route (well-known community)</help>
      </properties>
      <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
    </leafNode>
    <leafNode name="no-peer">
      <properties>
        <help>Do not export to any peer (well-known community)</help>
      </properties>
      <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
    </leafNode>
    <leafNode name="route-filter-translated-v4">
      <properties>
        <help>RT translated VPNv4 route filtering (well-known community)</help>
      </properties>
      <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
    </leafNode>
    <leafNode name="route-filter-translated-v6">
      <properties>
        <help>RT translated VPNv6 route filtering (well-known community)</help>
      </properties>
      <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
    </leafNode>
    <leafNode name="route-filter-v4">
      <properties>
        <help>RT VPNv4 route filtering (well-known community)</help>
      </properties>
      <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
    </leafNode>
    <leafNode name="route-filter-v6">
      <properties>
        <help>RT VPNv6 route filtering (well-known community)</help>
      </properties>
      <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
    </leafNode>
  </children>
  <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
</node>
<tagNode name="community-list">
  <properties>
    <help>Display routes matching the community-list</help>
    <completionHelp>
      <list>1-500 name</list>
    </completionHelp>
  </properties>
  <children>
    #include <include/bgp/exact-match.xml.i>
  </children>
  <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
</tagNode>
<node name="dampening">
  <properties>
    <help>Display detailed information about dampening</help>
  </properties>
  <children>
    <leafNode name="dampened-paths">
      <properties>
        <help>Display paths suppressed due to dampening</help>
      </properties>
      <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
    </leafNode>
    <leafNode name="flap-statistics">
      <properties>
        <help>Display flap statistics of routes</help>
      </properties>
      <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
    </leafNode>
    <leafNode name="parameters">
      <properties>
        <help>Display detail of configured dampening parameters</help>
      </properties>
      <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
    </leafNode>
  </children>
</node>
<tagNode name="filter-list">
  <properties>
    <help>Display routes conforming to the filter-list</help>
    <completionHelp>
      <script>vtysh -c 'show bgp as-path-access-list' | grep 'AS path access list' | awk '{print $NF}'</script>
    </completionHelp>
  </properties>
</tagNode>
<node name="large-community">
  <properties>
    <help>Show BGP routes matching the specified large-communities</help>
  </properties>
  <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
</node>
<leafNode name="neighbors">
  <properties>
    <help>Detailed information on TCP and BGP neighbor connections</help>
  </properties>
  <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
</leafNode>
<tagNode name="neighbors">
  <properties>
    <help>Show BGP information for specified neighbor</help>
    <completionHelp>
      <script>vtysh -c "$(IFS=$' '; echo "${COMP_WORDS[@]:0:${#COMP_WORDS[@]}-2} summary")" |  awk '/^[0-9a-f]/ {print $1}'</script>
    </completionHelp>
  </properties>
  <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
  <children>
    <leafNode name="advertised-routes">
      <properties>
        <help>Show routes advertised to a BGP neighbor</help>
      </properties>
      <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
    </leafNode>
    <leafNode name="dampened-routes">
      <properties>
        <help>Show dampened routes received from BGP neighbor</help>
      </properties>
      <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
    </leafNode>
    <leafNode name="flap-statistics">
      <properties>
        <help>Show flap statistics of the routes learned from BGP neighbor</help>
      </properties>
      <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
    </leafNode>
    <leafNode name="prefix-counts">
      <properties>
        <help>Show detailed prefix count information for BGP neighbor</help>
      </properties>
      <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
    </leafNode>
    <node name="received">
      <properties>
        <help>Show information received from BGP neighbor</help>
      </properties>
      <children>
        <leafNode name="prefix-filter">
          <properties>
            <help>Show prefixlist filter</help>
          </properties>
          <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
        </leafNode>
      </children>
    </node>
    <leafNode name="received-routes">
      <properties>
        <help>Show received routes from BGP neighbor</help>
      </properties>
      <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
    </leafNode>
    <leafNode name="routes">
      <properties>
        <help>Show routes learned from BGP neighbor</help>
      </properties>
      <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
    </leafNode>
  </children>
</tagNode>
<tagNode name="prefix-list">
  <properties>
    <help>Display routes conforming to the prefix-list</help>
  </properties>
  <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
</tagNode>
<tagNode name="regexp">
  <properties>
    <help>Display routes matching the AS path regular expression</help>
  </properties>
  <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
</tagNode>
<tagNode name="route-map">
  <properties>
    <help>Show BGP routes matching the specified route map</help>
    <completionHelp>
      <path>policy route-map</path>
    </completionHelp>
  </properties>
  <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
</tagNode>
#include <include/vtysh-generic-wide.xml.i>
<!-- included end -->