Skip to content

Commit 2f399f1

Browse files
authored
Merge pull request #483 from globocom/FLSTD-3206
Fix false failure during Dell FTOS BGP configuration deployment. The …
2 parents 7c5eeda + 8f91315 commit 2f399f1

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

  • networkapi/plugins/Dell/FTOS/BGP

networkapi/plugins/Dell/FTOS/BGP/Cli.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ class Generic(BasePlugin):
6060
INVALID_REGEX = '([Ii]nvalid)|overlaps with'
6161
WARNING_REGEX = 'config ignored|Warning'
6262
ERROR_REGEX = '[Ee][Rr][Rr][Oo][Rr]|[Ff]ail|%|utility is occupied'
63+
ROUTE_MAP_ENTRY_EXISTS_REGEX = '[Rr]oute-map entry already exists\\.?'
6364

6465
admin_privileges = 15
6566
VALID_TFTP_PUT_MESSAGE = 'bytes successfully copied'
@@ -510,6 +511,11 @@ def _wait_string(self, wait_str_ok_regex='', wait_str_invalid_regex=None,
510511
raise deploy_exc.InvalidCommandException(file_name_string)
511512

512513
elif re.search(wait_str_failed_regex, output_line):
514+
if re.search(self.ROUTE_MAP_ENTRY_EXISTS_REGEX,
515+
output_line):
516+
log.warning('Ignoring idempotent route-map error: %s'
517+
% output_line)
518+
continue
513519
log.error('Equipment raised FAILED error: %s' %
514520
output_line)
515521
raise deploy_exc.CommandErrorException(file_name_string)

0 commit comments

Comments
 (0)