diff options
Diffstat (limited to 'cds-regression-test/cba/ansible-python-dg/Scripts')
-rw-r--r-- | cds-regression-test/cba/ansible-python-dg/Scripts/rt-python.py | 11 |
1 files changed, 11 insertions, 0 deletions
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) |