diff options
author | Yaroslav Brustinov <ybrustin@cisco.com> | 2016-04-27 23:32:51 +0300 |
---|---|---|
committer | Yaroslav Brustinov <ybrustin@cisco.com> | 2016-04-27 23:32:51 +0300 |
commit | 5698b663110d75654d2af797e2e257d5fc52485d (patch) | |
tree | 319e44006bd5b22015fbfb33a58048929fad2193 /scripts/automation | |
parent | c04b8b0dfa97c0eae40e4dc35b7cc223c2fb85e6 (diff) |
regression: add small delay if load clean config fails
Diffstat (limited to 'scripts/automation')
-rwxr-xr-x | scripts/automation/regression/CPlatform.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/automation/regression/CPlatform.py b/scripts/automation/regression/CPlatform.py index f69e93ab..de1c22ce 100755 --- a/scripts/automation/regression/CPlatform.py +++ b/scripts/automation/regression/CPlatform.py @@ -73,7 +73,8 @@ class CPlatform(object): if i < 4: continue raise Exception('Could not load clean config, response: %s' % res) - return + if i > 0: # were errors, better to wait + time.sleep(2) def config_pbr (self, mode = 'config'): idx = 1 @@ -228,7 +229,7 @@ class CPlatform(object): # define the relevant VRF name pre_commit_set.add('{mode}ip vrf {dup}'.format( mode = unconfig_str, dup = dual_if.get_vrf_name()) ) - + # assign VRF to interfaces, config interfaces with relevant route-map client_if_command_set.append ('{mode}ip vrf forwarding {dup}'.format( mode = unconfig_str, dup = dual_if.get_vrf_name()) ) server_if_command_set.append ('{mode}ip vrf forwarding {dup}'.format( mode = unconfig_str, dup = dual_if.get_vrf_name()) ) |