diff --git a/src/tests/tools/mock_mw_sdn_ctrl/TODO.txt b/src/tests/tools/mock_mw_sdn_ctrl/TODO.txt new file mode 100644 index 0000000000000000000000000000000000000000..db764fcf282346ecbb1bc1c7d072817e319587cf --- /dev/null +++ b/src/tests/tools/mock_mw_sdn_ctrl/TODO.txt @@ -0,0 +1,9 @@ +extend discovery of mgmt VLANs + +>>> import requests +>>> from requests.auth import HTTPBasicAuth +>>> url = 'https://192.168.27.136:8443/nmswebs/restconf/data/ietf-eth-tran-service:etht-svc' +>>> auth = HTTPBasicAuth('nms5ux', 'nms5ux') +>>> response = requests.get(url, timeout=120, verify=False, auth=auth) +>>> response.content +{"ietf-eth-tran-service:etht-svc":{"etht-svc-instances":[{"te-topology-identifier":{"topology-id":"eth-native-topology","client-id":3373,"provider-id":3373},"etht-svc-name":"MGMT-VLAN-192-168-27-139","admin-status":"ietf-te-types:tunnel-state-up","etht-svc-type":"ietf-eth-tran-types:p2p-svc","etht-svc-end-points":[{"etht-svc-access-points":[{"access-node-id":"192.168.27.139","access-ltp-id":3,"access-point-id":"1"}],"outer-tag":{"vlan-value":100,"tag-type":"ietf-eth-tran-types:classify-c-vlan"},"etht-svc-end-point-name":"192.168.27.139:3","service-classification-type":"ietf-eth-tran-types:port-classification"}],"state":{"operational-state":"ietf-te-types:tunnel-state-up","provisioning-state":"ietf-te-types:lsp-state-up"}},{"te-topology-identifier":{"topology-id":"eth-native-topology","client-id":3373,"provider-id":3373},"etht-svc-name":"MGMT-VLAN-192-168-27-140","admin-status":"ietf-te-types:tunnel-state-up","etht-svc-type":"ietf-eth-tran-types:p2p-svc","etht-svc-end-points":[{"etht-svc-access-points":[{"access-node-id":"192.168.27.140","access-ltp-id":3,"access-point-id":"1"}],"outer-tag":{"vlan-value":100,"tag-type":"ietf-eth-tran-types:classify-c-vlan"},"etht-svc-end-point-name":"192.168.27.140:3","service-classification-type":"ietf-eth-tran-types:vlan-classification"}],"state":{"operational-state":"ietf-te-types:tunnel-state-up","provisioning-state":"ietf-te-types:lsp-state-up"}}],"globals":{}}}