Didn't test this but it's already randomly broken so cant be worse
Hopefully fixes:
raise InvalidCLIError("%s" % output)
InvalidCLIError: line 2: % Command incomplete[4]: bgp
large-community-list standard Test1 permit
Signed-off-by: Quentin Young <qlyoung@nvidia.com>
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)