Skip to content

Commit 5f46d31

Browse files
author
laura.panzariello
committed
Update Dell plugin to work with S5212F-ON devices
1 parent 60dcc41 commit 5f46d31

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

  • networkapi/plugins/Dell/FTOS/BGP

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ class Generic(BasePlugin):
6363

6464
admin_privileges = 15
6565
VALID_TFTP_PUT_MESSAGE = 'bytes successfully copied'
66+
VALID_TFTP_PUT_MESSAGE_OS10 = 'Copy succeeded'
6667

6768
def _deploy_pre_req(self, neighbor):
6869
log.debug("_deploy_pre_req")
@@ -522,5 +523,14 @@ def _wait_string(self, wait_str_ok_regex='', wait_str_invalid_regex=None,
522523
log.debug('Switch copied 0 bytes, need to try again.')
523524
raise plugin_exc.CurrentlyBusyErrorException()
524525
string_ok = 1
526+
elif re.search(self.VALID_TFTP_PUT_MESSAGE_OS10, output_line):
527+
528+
log.debug('Equipment output: %s' % output_line)
529+
530+
# test bug switch copying 0 bytes
531+
if output_line == 'Copy failed':
532+
log.debug('Switch copied 0 bytes, need to try again.')
533+
raise plugin_exc.CurrentlyBusyErrorException()
534+
string_ok = 1
525535

526536
return recv_string

0 commit comments

Comments
 (0)