summaryrefslogtreecommitdiff
path: root/op-mode-definitions/reset-ip-bgp.xml.in
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2022-06-29 15:44:54 +0000
committerViacheslav Hletenko <v.gletenko@vyos.io>2022-06-29 15:44:54 +0000
commit5881fb3d6184af5890c0df94a92f3cd27fa2c47d (patch)
tree59f5164182be083b8a8d5a84c1982ccb9c680008 /op-mode-definitions/reset-ip-bgp.xml.in
parent2e8fdce2a94768f82758487336f6a46ab5b20ad6 (diff)
downloadvyos-1x-5881fb3d6184af5890c0df94a92f3cd27fa2c47d.tar.gz
vyos-1x-5881fb3d6184af5890c0df94a92f3cd27fa2c47d.zip
bgp: T4494: Ability to reset bgp in VRF
reset ip bgp vrf foo 192.0.2.2
Diffstat (limited to 'op-mode-definitions/reset-ip-bgp.xml.in')
-rw-r--r--op-mode-definitions/reset-ip-bgp.xml.in25
1 files changed, 25 insertions, 0 deletions
diff --git a/op-mode-definitions/reset-ip-bgp.xml.in b/op-mode-definitions/reset-ip-bgp.xml.in
index 931a2a9bc..913d76666 100644
--- a/op-mode-definitions/reset-ip-bgp.xml.in
+++ b/op-mode-definitions/reset-ip-bgp.xml.in
@@ -143,6 +143,31 @@
</node>
</children>
</tagNode>
+ <tagNode name="vrf">
+ <properties>
+ <help>Clear BGP statistics or status for vrf</help>
+ <completionHelp>
+ <path>vrf name</path>
+ </completionHelp>
+ </properties>
+ <children>
+ <leafNode name="all">
+ <properties>
+ <help>Clear all BGP peering sessions for vrf</help>
+ </properties>
+ <command>vtysh -c "clear bgp vrf $5 *"</command>
+ </leafNode>
+ <leafNode name="node.tag">
+ <properties>
+ <help>Clear BGP neighbor IP address</help>
+ <completionHelp>
+ <list>&lt;x.x.x.x&gt;</list>
+ </completionHelp>
+ </properties>
+ <command>vtysh -c "clear bgp vrf $5 $6"</command>
+ </leafNode>
+ </children>
+ </tagNode>
</children>
</node>
<tagNode name="bgp">