Closed italovalcy closed 2 years ago
Hi,
As discussed in PR kytos-ng/sdntrace_cp#26, we should add tests for sdntrace/sdntrace-cp:
# mn --topo linear,4 --controller=remote,ip=127.0.0.1 # curl -H 'Content-type: application/json' -X POST http://127.0.0.1:8181/api/kytos/mef_eline/v2/evc -d '{"name": "my evc 400", "dynamic_backup_path": true, "enabled": true, "uni_a": {"tag": {"value": 400, "tag_type": 1}, "interface_id": "00:00:00:00:00:00:00:01:1"}, "uni_z": {"tag": {"value": 400, "tag_type": 1}, "interface_id": "00:00:00:00:00:00:00:04:1"}}' # curl -s http://localhost:8181/api/amlight/sdntrace_cp/trace -X PUT -H 'Content-type: application/json' -d '{"trace": {"switch": {"dpid": "00:00:00:00:00:00:00:01", "in_port": 1}, "eth": {"dl_type": 33024, "dl_vlan": 400}}}' | jq -r { "result": [ { "dpid": "00:00:00:00:00:00:00:01", "port": 1, "time": "2022-05-17 14:33:03.762700", "type": "starting", "vlan": 400 }, { "dpid": "00:00:00:00:00:00:00:02", "port": 2, "time": "2022-05-17 14:33:03.762812", "type": "trace", "vlan": 834 }, { "dpid": "00:00:00:00:00:00:00:03", "port": 2, "time": "2022-05-17 14:33:03.762862", "type": "trace", "vlan": 2711 }, { "dpid": "00:00:00:00:00:00:00:04", "port": 2, "time": "2022-05-17 14:33:03.762898", "type": "trace", "vlan": 2734 } ] }
Hi,
As discussed in PR kytos-ng/sdntrace_cp#26, we should add tests for sdntrace/sdntrace-cp: