Skip to content

Commit

Permalink
Merge pull request #193 from e-sonic/snc-20154_clear_bgp_v6-prefix
Browse files Browse the repository at this point in the history
SNC-20154 Add clear bgp for ipv6-prefix
  • Loading branch information
bhavini-gada authored and GitHub Enterprise committed Oct 12, 2022
2 parents 10df789 + 964882f commit bbc11c3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion CLI/actioner/sonic_cli_clear_bgp.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ def clear_bgp_api(args):

if dampeningIndex != "":
af = ""
vrfname = ""
pg = ""
external = ""
ifname = ""
Expand Down
4 changes: 2 additions & 2 deletions CLI/clitree/cli-xml/bgp.xml
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ limitations under the License.
</DOCGEN>
</COMMAND>
<COMMAND name="clear bgp ipv4" help="Clear BGP IPv4">
<MACRO name="NEW_BGP_CLR_OPTIONS" arg="4"></MACRO>
<MACRO name="NEW_BGP_CLR_OPTIONS" arg="4,"></MACRO>
<ACTION builtin="clish_pyobj">sonic_cli_clear_bgp clear_bgp asn=${as-num-dot} n-ipv4=${ipv4-addr} n-ipv6=${ipv6-addr} cleartype=${cleartype} dampopt=${damptype} ${__line}</ACTION>
<DOCGEN>
<DESCRIPTION>
Expand All @@ -215,7 +215,7 @@ limitations under the License.
</DOCGEN>
</COMMAND>
<COMMAND name="clear bgp ipv6" help="Clear BGP IPv6">
<MACRO name="NEW_BGP_CLR_OPTIONS" arg="6"></MACRO>
<MACRO name="NEW_BGP_CLR_OPTIONS" arg="6,V6"></MACRO>
<ACTION builtin="clish_pyobj">sonic_cli_clear_bgp clear_bgp asn=${as-num-dot} n-ipv4=${ipv4-addr} n-ipv6=${ipv6-addr} cleartype=${cleartype} dampopt=${damptype} ${__full_line}</ACTION>
</COMMAND>
<COMMAND name="clear evpn" help="Clear EVPN information"/>
Expand Down
3 changes: 1 addition & 2 deletions CLI/clitree/macro/bgp_macro.xml
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,7 @@ limitations under the License.
<PARAM name="ipv6-addr" help="IPv6 Neighbor address to clear BGP" ptype="IPV6_ADDR">
<MACRO name="CLEAR_BGP_INOUT_SUB_CMDS" arg=""></MACRO>
</PARAM>
<PARAM name="ip-prefix" help="IPv4 Prefix to clear BGP" ptype="IP_ADDR_MASK" test='"4" = "arg1"'>
<MACRO name="CLEAR_BGP_INOUT_SUB_CMDS" arg=""></MACRO>
<PARAM name="ip-prefix" help="IPvarg1 Prefix to clear BGP" ptype="IParg2_ADDR_MASK">
</PARAM>
<PARAM name="interface" help="Interface to clear BGP" ptype="SUBCOMMAND" mode="subcommand">
<PARAM name="interface_type" help="Neigh type" ptype="SUBCOMMAND" mode="switch">
Expand Down

0 comments on commit bbc11c3

Please sign in to comment.