summaryrefslogtreecommitdiffstats
path: root/scripts/automation
diff options
context:
space:
mode:
authorYaroslav Brustinov <ybrustin@cisco.com>2016-04-27 23:32:51 +0300
committerYaroslav Brustinov <ybrustin@cisco.com>2016-04-27 23:32:51 +0300
commit5698b663110d75654d2af797e2e257d5fc52485d (patch)
tree319e44006bd5b22015fbfb33a58048929fad2193 /scripts/automation
parentc04b8b0dfa97c0eae40e4dc35b7cc223c2fb85e6 (diff)
regression: add small delay if load clean config fails
Diffstat (limited to 'scripts/automation')
-rwxr-xr-xscripts/automation/regression/CPlatform.py5
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()) )