mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-15 08:57:29 +00:00
Merge pull request #8195 from qlyoung/fix-community-type-command
tests: fix community-list invalid command
This commit is contained in:
commit
7b94dd35dd
@ -2391,14 +2391,7 @@ def create_bgp_community_lists(tgen, input_dict, build=False):
|
|||||||
logger.error(errormsg)
|
logger.error(errormsg)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
try:
|
cmd = "{} {} {} {} {}".format(cmd, community_type, name, action, value)
|
||||||
community_type = int(community_type)
|
|
||||||
cmd = "{} {} {} {}".format(cmd, community_type, action, value)
|
|
||||||
except ValueError:
|
|
||||||
|
|
||||||
cmd = "{} {} {} {} {}".format(
|
|
||||||
cmd, community_type, name, action, value
|
|
||||||
)
|
|
||||||
|
|
||||||
if del_action:
|
if del_action:
|
||||||
cmd = "no {}".format(cmd)
|
cmd = "no {}".format(cmd)
|
||||||
|
Loading…
Reference in New Issue
Block a user