diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2022-06-29 15:44:54 +0000 |
---|---|---|
committer | Viacheslav Hletenko <v.gletenko@vyos.io> | 2022-06-29 15:44:54 +0000 |
commit | 5881fb3d6184af5890c0df94a92f3cd27fa2c47d (patch) | |
tree | 59f5164182be083b8a8d5a84c1982ccb9c680008 | |
parent | 2e8fdce2a94768f82758487336f6a46ab5b20ad6 (diff) | |
download | vyos-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
-rw-r--r-- | op-mode-definitions/reset-ip-bgp.xml.in | 25 |
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><x.x.x.x></list> + </completionHelp> + </properties> + <command>vtysh -c "clear bgp vrf $5 $6"</command> + </leafNode> + </children> + </tagNode> </children> </node> <tagNode name="bgp"> |