From d3cdace51db473c93540229da3a0fd061120957c Mon Sep 17 00:00:00 2001 From: SantoshB Date: Thu, 15 Oct 2020 14:57:57 +0530 Subject: cds-bash script package Issue-ID: CCSDK-2913 Change-Id: I2f97b0c78314019d5002e8563c4e433ae5e816b9 Signed-off-by: SantoshB Signed-off-by: mrichomme --- .../cba/ansible-python-dg/Scripts/rt-python.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 cds-regression-test/cba/ansible-python-dg/Scripts/rt-python.py (limited to 'cds-regression-test/cba/ansible-python-dg/Scripts') diff --git a/cds-regression-test/cba/ansible-python-dg/Scripts/rt-python.py b/cds-regression-test/cba/ansible-python-dg/Scripts/rt-python.py new file mode 100644 index 0000000..76af364 --- /dev/null +++ b/cds-regression-test/cba/ansible-python-dg/Scripts/rt-python.py @@ -0,0 +1,11 @@ +#!/usr/bin/python + +import sys +import json + + +if __name__ == "__main__": + ansibleArtifacts = json.loads(sys.argv[1]) + interfaceName = ansibleArtifacts["topology"]["tor-8.tenlab-cloud"][0]["interface_name"] + print(interfaceName) + sys.exit(0) -- cgit 1.2.3-korg