mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-15 02:43:41 +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)
|
||||
return False
|
||||
|
||||
try:
|
||||
community_type = int(community_type)
|
||||
cmd = "{} {} {} {}".format(cmd, community_type, action, value)
|
||||
except ValueError:
|
||||
|
||||
cmd = "{} {} {} {} {}".format(
|
||||
cmd, community_type, name, action, value
|
||||
)
|
||||
cmd = "{} {} {} {} {}".format(cmd, community_type, name, action, value)
|
||||
|
||||
if del_action:
|
||||
cmd = "no {}".format(cmd)
|
||||
|
Loading…
Reference in New Issue
Block a user