summaryrefslogtreecommitdiff
path: root/op-mode-definitions/reset-ip-bgp.xml
blob: 931a2a9bc233f87b3233eb56b02ef327cdbcc2a3 (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
<?xml version="1.0"?>
<interfaceDefinition>
  <node name="reset">
    <children>
      <node name="ip">
        <children>
          <node name="bgp">
            <properties>
              <help>Clear Border Gateway Protocol (BGP) statistics or status</help>
            </properties>
            <children>
              <leafNode name="all">
                <properties>
                  <help>Clear all BGP peering sessions</help>
                </properties>
                <command>vtysh -c "clear bgp ipv4 *"</command>
              </leafNode>
              <node name="dampening">
                <properties>
                  <help>Clear BGP route flap dampening information</help>
                </properties>
                <command>vtysh -c "clear ip bgp dampening"</command>
              </node>
              <tagNode name="dampening">
                <properties>
                  <help>Clear BGP route flap dampening information for given host|network address</help>
                  <completionHelp>
                    <list>&lt;x.x.x.x&gt; &lt;x.x.x.x/x&gt;</list>
                  </completionHelp>
                </properties>
                <command>vtysh -c "clear ip bgp dampening $5"</command>
                <children>
                  <leafNode name="node.tag">
                    <properties>
                      <help>Clear BGP route flap dampening information for given network address</help>
                      <completionHelp>
                        <list>&lt;x.x.x.x&gt;</list>
                      </completionHelp>
                    </properties>
                    <command>vtysh -c "clear ip bgp dampening $5 $6"</command>
                  </leafNode>
                </children>
              </tagNode>
              <node name="external">
                <properties>
                  <help>Clear all external peers</help>
                  <completionHelp>
                    <list>WORD</list>
                  </completionHelp>
                </properties>
                <command>vtysh -c "clear bgp ipv4 external"</command>
                <children>
                  <node name="in">
                    <properties>
                      <help>Send route-refresh unless using 'soft-reconfiguration inbound'</help>
                    </properties>
                    <command>vtysh -c "clear bgp ipv4 external in"</command>
                    <children>
                      <leafNode name="prefix-filter">
                        <properties>
                          <help>Push out prefix-list ORF and do inbound soft reconfig</help>
                        </properties>
                        <command>vtysh -c "clear bgp ipv4 external in prefix-filter"</command>
                      </leafNode>
                    </children>
                  </node>
                  <node name="out">
                    <properties>
                      <help>Resend all outbound updates</help>
                    </properties>
                    <command>vtysh -c "clear bgp ipv4 external out"</command>
                  </node>
                  <node name="soft">
                    <properties>
                      <help>Soft reconfig inbound and outbound updates</help>
                    </properties>
                    <command>vtysh -c "clear bgp ipv4 external soft"</command>
                    <children>
                      <node name="in">
                        <properties>
                          <help>Clear via soft reconfig of inbound update</help>
                        </properties>
                        <command>vtysh -c "clear bgp ipv4 external soft in"</command>
                      </node>
                      <node name="out">
                        <properties>
                          <help>Resend all outbound updates</help>
                        </properties>
                        <command>vtysh -c "clear bgp ipv4 external soft out"</command>
                      </node>
                    </children>
                  </node>
                </children>
              </node>
              <tagNode name="peer-group">
                <properties>
                  <help>Clear BGP statistics or status for given peer-group</help>
                  <completionHelp>
                    <list>WORD</list>
                  </completionHelp>
                </properties>
                <command>vtysh -c "clear bgp ipv4 peer-group $5"</command>
                <children>
                  <node name="in">
                    <properties>
                      <help>Send route-refresh unless using 'soft-reconfiguration inbound'</help>
                    </properties>
                    <command>vtysh -c "clear bgp ipv4 peer-group $5 in"</command>
                    <children>
                      <leafNode name="prefix-filter">
                        <properties>
                          <help>Push out prefix-list ORF and do inbound soft reconfig</help>
                        </properties>
                        <command>vtysh -c "clear bgp ipv4 peer-group $5 in prefix-filter"</command>
                      </leafNode>
                    </children>
                  </node>
                  <node name="out">
                    <properties>
                      <help>Resend all outbound updates</help>
                    </properties>
                    <command>vtysh -c "clear bgp ipv4 peer-group $5 out"</command>
                  </node>
                  <node name="soft">
                    <properties>
                      <help>Soft reconfig inbound and outbound updates</help>
                    </properties>
                    <command>vtysh -c "clear bgp ipv4 peer-group $5 soft"</command>
                    <children>
                      <node name="in">
                        <properties>
                          <help>Clear via soft reconfig of inbound update</help>
                        </properties>
                        <command>vtysh -c "clear bgp ipv4 peer-group $5 soft in"</command>
                      </node>
                      <node name="out">
                        <properties>
                          <help>Resend all outbound updates</help>
                        </properties>
                        <command>vtysh -c "clear bgp ipv4 peer-group $5 soft out"</command>
                      </node>
                    </children>
                  </node>
                </children>
              </tagNode>
            </children>
          </node>
          <tagNode name="bgp">
            <properties>
              <help>Clear BGP neighbor IP address</help>
              <completionHelp>
                <script>${vyos_completion_dir}/list_bgp_neighbors.sh --ipv4</script>
              </completionHelp>
            </properties>
            <command>vtysh -c "clear bgp ipv4 $4"</command>
            <children>
              <node name="in">
                <properties>
                  <help>Send route-refresh unless using 'soft-reconfiguration inbound'</help>
                </properties>
                <command>vtysh -c "clear bgp ipv4 $4 in"</command>
                <children>
                  <leafNode name="prefix-filter">
                    <properties>
                      <help>Push out prefix-list ORF and do inbound soft reconfig</help>
                    </properties>
                    <command>vtysh -c "clear bgp ipv4 $4 in prefix-filter"</command>
                  </leafNode>
                </children>
              </node>
              <node name="out">
                <properties>
                  <help>Resend all outbound updates</help>
                </properties>
                <command>vtysh -c "clear bgp ipv4 $4 out"</command>
              </node>
              <node name="soft">
                <properties>
                  <help>Soft reconfig inbound and outbound updates</help>
                </properties>
                <command>vtysh -c "clear bgp ipv4 $4 soft"</command>
                <children>
                  <node name="in">
                    <properties>
                      <help>Clear via soft reconfig of inbound update</help>
                    </properties>
                    <command>vtysh -c "clear bgp ipv4 $4 soft in"</command>
                  </node>
                  <node name="out">
                    <properties>
                      <help>Resend all outbound updates</help>
                    </properties>
                    <command>vtysh -c "clear bgp ipv4 $4 soft out"</command>
                  </node>
                </children>
              </node>
            </children>
          </tagNode>
        </children>
      </node>
    </children>
  </node>
</interfaceDefinition>