Skip to content
Snippets Groups Projects
Commit cb1721a5 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Tests - Tools - Mock MW SDN Ctrl:

- Pre-merge file cleanup
parent 974acf01
No related branches found
No related tags found
2 merge requests!142Release TeraFlowSDN 2.1,!71OFC'23 + IETF L2VPN Device Driver + Device Controllers + Multiple small improvements
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":{}}}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment