[ONOS-6584] Added retry function to getNetCFG functions in FUNCnetCfg and VPLS test cases.
Change-Id: I6b0b487562037e66f1fc229492c510024e9ee26b
diff --git a/TestON/tests/USECASE/VPLS/VPLSBasic/VPLSBasic.py b/TestON/tests/USECASE/VPLS/VPLSBasic/VPLSBasic.py
index d5d913e..76f7ccd 100644
--- a/TestON/tests/USECASE/VPLS/VPLSBasic/VPLSBasic.py
+++ b/TestON/tests/USECASE/VPLS/VPLSBasic/VPLSBasic.py
@@ -264,7 +264,10 @@
main.step( "Check interface configurations" )
result = False
- getPorts = main.ONOSrest1.getNetCfg( subjectClass="ports" )
+ getPorts = utilities.retry( f=main.ONOSrest1.getNetCfg,
+ retValue=False,
+ kwargs={"subjectClass":"ports"},
+ sleep=SLEEP )
onosCfg = pprint( getPorts )
sentCfg = pprint( originalCfg.get( "ports" ) )
diff --git a/TestON/tests/USECASE/VPLS/dependencies/vpls.py b/TestON/tests/USECASE/VPLS/dependencies/vpls.py
index 729621d..02abba2 100644
--- a/TestON/tests/USECASE/VPLS/dependencies/vpls.py
+++ b/TestON/tests/USECASE/VPLS/dependencies/vpls.py
@@ -53,8 +53,10 @@
clusterResult = True
for node in main.RESTs:
result = False
- getVPLS = node.getNetCfg( subjectClass="apps",
- subjectKey=app )
+ getVPLS = utilities.retry( f=node.getNetCfg,
+ retValue=False,
+ kwargs={"subjectClass":"apps", "subjectKey":app},
+ sleep=SLEEP )
onosCfg = json.loads( getVPLS ).get( 'vpls' ).get( 'vplsList' )
onosCfg = pprint( sanitizeConfig( onosCfg ) )
sentCfg = pprint( sanitizeConfig( main.vplsConfig ) )