aboutsummaryrefslogtreecommitdiffstats
path: root/test/vcpe/vcpe.py
diff options
context:
space:
mode:
authorYang Xu <yang.xu3@huawei.com>2018-12-30 05:32:21 +0000
committerYang Xu <yang.xu3@huawei.com>2018-12-30 05:44:22 +0000
commit112af76639fc51351ccad9866b252080f3dd1551 (patch)
tree256924f1c6596745fa857e5b71a70441b1bc457b /test/vcpe/vcpe.py
parent3ea41744bc64508a91f9a2b76f4f4f948b9563a3 (diff)
Automate pod cluster node ip retrieval
Change-Id: I8e644798fefa180a26da4c2cb4607467810f964a Issue-ID: INT-791 Signed-off-by: Yang Xu <yang.xu3@huawei.com>
Diffstat (limited to 'test/vcpe/vcpe.py')
-rwxr-xr-xtest/vcpe/vcpe.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/vcpe/vcpe.py b/test/vcpe/vcpe.py
index 460cb56de..8a46e359f 100755
--- a/test/vcpe/vcpe.py
+++ b/test/vcpe/vcpe.py
@@ -192,6 +192,10 @@ def tmp_sniro():
# Setting up SNIRO
config_sniro(vcpecommon, svc_instance_uuid['gmux'], svc_instance_uuid['brg'])
+def test():
+ vcpecommon = VcpeCommon()
+ print("sdnc_oam_ip: %s" % (vcpecommon.sdnc_oam_ip))
+
if __name__ == '__main__':
logging.basicConfig(level=logging.DEBUG, format='%(message)s')
@@ -228,4 +232,6 @@ if __name__ == '__main__':
deploy_brg_only()
elif sys.argv[1] == 'sniro':
tmp_sniro()
+ elif sys.argv[1] == 'test':
+ test()