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

View File

@@ -0,0 +1,22 @@
{
"priority": 40001,
"timeout": 0,
"isPermanent": true,
"deviceId": "of:0000000000000001",
"treatment": {
"instructions": [
{
"type": "OUTPUT",
"port": "ALL"
}
]
},
"selector": {
"criteria": [
{
"type": "ETH_TYPE",
"ethType": "0x0806"
}
]
}
}

View File

@@ -0,0 +1,26 @@
{
"priority": 40001,
"timeout": 0,
"isPermanent": true,
"deviceId": "of:0000000000000001",
"treatment": {
"instructions": [
{
"type": "OUTPUT",
"port": "1"
}
]
},
"selector": {
"criteria": [
{
"type": "ETH_TYPE",
"ethType": "0x0800"
},
{
"type": "IPV4_DST",
"ip": "10.0.0.1/32"
}
]
}
}

View File

@@ -0,0 +1,26 @@
{
"priority": 40001,
"timeout": 0,
"isPermanent": true,
"deviceId": "of:0000000000000001",
"treatment": {
"instructions": [
{
"type": "OUTPUT",
"port": "2"
}
]
},
"selector": {
"criteria": [
{
"type": "ETH_TYPE",
"ethType": "0x0800"
},
{
"type": "IPV4_DST",
"ip": "10.0.0.2/32"
}
]
}
}