Init: lab2 done

This commit is contained in:
2025-09-15 23:58:18 +08:00
commit 98f7d612d5
12 changed files with 226 additions and 0 deletions

14
run.sh Executable file
View File

@@ -0,0 +1,14 @@
#!/usr/bin/env -S bash
files=(
'project2_111550013/part2/flows_s1-1_111550013.json'
'project2_111550013/part2/flows_s1-2_111550013.json'
'project2_111550013/part2/flows_s1-3_111550013.json'
)
for file in "${files[@]}"; do
curl -u onos:rocks -X POST \
-H 'Content-Type: application/json' \
--json "@$file" \
'http://localhost:8181/onos/v1/flows/of:0000000000000001'
done