diff options
| -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">  | 
