Bạn ơi cho mình hỏi chút với.
Mình đang làm flow như của bạn nhưng khi submit vẫn không ping được giữa các host:
{ "flows": [ { "id": "52917298863470654", "tableId": "0", "appId": "org.onosproject.net.intent", "groupId": 0, "priority": 55, "timeout": 0, "isPermanent": true, "deviceId": "of:0000000000000001", // id của switch "state": "ADDED", "life": 1689, "packets": 0, "bytes": 0, "liveType": "UNKNOWN", "lastSeen": 1557803155885, "treatment": { "instructions": [ { "type": "OUTPUT", // cổng ra số 2 "port": "2" } ], "deferred": [] }, "selector": { "criteria": [ { "type": "IN_PORT", // cổng vào số 3 "port": 3 }, { "type": "ETH_DST", "mac": "8E:BB:58:81:5D:4D" // mac của host đích đến }, { "type": "ETH_SRC", "mac": "62:D6:0A:99:C5:DB" // mac của host gửi, mấy cái sau tương tự } ] } }, { "id": "52917298863470654", "tableId": "0", "appId": "org.onosproject.net.intent", "groupId": 0, "priority": 55, "timeout": 0, "isPermanent": true, "deviceId": "of:0000000000000001", "state": "ADDED", "life": 1689, "packets": 0, "bytes": 0, "liveType": "UNKNOWN", "lastSeen": 1557803155885, "treatment": { "instructions": [ { "type": "OUTPUT", "port": "3" } ], "deferred": [] }, "selector": { "criteria": [ { "type": "IN_PORT", "port": 2 }, { "type": "ETH_DST", "mac": "62:D6:0A:99:C5:DB" }, { "type": "ETH_SRC", "mac": "8E:BB:58:81:5D:4D" } ] } }, { "id": "52917298863470654", "tableId": "0", "appId": "org.onosproject.net.intent", "groupId": 0, "priority": 55, "timeout": 0, "isPermanent": true, "deviceId": "of:0000000000000003", "life": 1689, "packets": 0, "bytes": 0, "liveType": "UNKNOWN",
"treatment": { "instructions": [ { "type": "OUTPUT", "port": "1" } ], "deferred": [] }, "selector": { "criteria": [ { "type": "IN_PORT", "port": 2 }, { "type": "ETH_DST", "mac": "8E:BB:58:81:5D:4D" }, { "type": "ETH_SRC", "mac": "62:D6:0A:99:C5:DB" } ] } },
{ "id": "52917298863470654", "tableId": "0", "appId": "org.onosproject.net.intent", "groupId": 0, "priority": 55, "timeout": 0, "isPermanent": true, "deviceId": "of:0000000000000003", "state": "ADDED", "life": 1689, "packets": 0, "bytes": 0, "liveType": "UNKNOWN", "lastSeen": 1557803155885, "treatment": { "instructions": [ { "type": "OUTPUT", "port": "2" } ], "deferred": [] }, "selector": { "criteria": [ { "type": "IN_PORT", "port": 1 }, { "type": "ETH_DST", "mac": "62:D6:0A:99:C5:DB" }, { "type": "ETH_SRC", "mac": "8E:BB:58:81:5D:4D" } ] } }, { "id": "52917298863470654", "tableId": "0", "appId": "org.onosproject.net.intent", "groupId": 0, "priority": 55, "timeout": 0, "isPermanent": true, "deviceId": "of:0000000000000002", "state": "ADDED", "life": 1689, "packets": 0, "bytes": 0, "liveType": "UNKNOWN", "lastSeen": 1557803155885, "treatment": { "instructions": [ { "type": "OUTPUT", "port": "3" } ], "deferred": [] }, "selector": { "criteria": [ { "type": "IN_PORT", "port": 2 }, { "type": "ETH_DST", "mac": "8E:BB:58:81:5D:4D" }, { "type": "ETH_SRC", "mac": "62:D6:0A:99:C5:DB" } ] } }, { "id": "52917298863470654", "tableId": "0", "appId": "org.onosproject.net.intent", "groupId": 0, "priority": 55, "timeout": 0, "isPermanent": true, "deviceId": "of:0000000000000002", "state": "ADDED", "life": 1689, "packets": 0, "bytes": 0, "liveType": "UNKNOWN", "lastSeen": 1557803155885, "treatment": { "instructions": [ { "type": "OUTPUT", "port": "2" } ], "deferred": [] }, "selector": { "criteria": [ { "type": "IN_PORT", "port": 3 }, { "type": "ETH_DST", "mac": "62:D6:0A:99:C5:DB" }, { "type": "ETH_SRC", "mac": "8E:BB:58:81:5D:4D" } ] } } ] }
Bạn cho mình hỏi thêm chút được ko ạ
xin lỗi bạn nhé, cái này mình làm cũng từ lâu rồi nên giờ ko nhớ nữa, cài lại máy nên cũng mất hết source code rồi. mình nhớ hồi đấy làm cái này cũng phải mò google vs homepage mãi mới config được ((
bạn cho mình hỏi tại sao lỗi vậy
Total post views
35.3K
Reputations
152
Following tags
16
Following users
0
Followers
8
Posts
Bookmarks
1
Total questions
Total answers
Have no organizations yet.
Bạn ơi cho mình hỏi chút với.
Mình đang làm flow như của bạn nhưng khi submit vẫn không ping được giữa các host:
{ "flows": [ { "id": "52917298863470654", "tableId": "0", "appId": "org.onosproject.net.intent", "groupId": 0, "priority": 55, "timeout": 0, "isPermanent": true, "deviceId": "of:0000000000000001", // id của switch "state": "ADDED", "life": 1689, "packets": 0, "bytes": 0, "liveType": "UNKNOWN", "lastSeen": 1557803155885, "treatment": { "instructions": [ { "type": "OUTPUT", // cổng ra số 2 "port": "2" } ], "deferred": [] }, "selector": { "criteria": [ { "type": "IN_PORT", // cổng vào số 3 "port": 3 }, { "type": "ETH_DST",
"mac": "8E:BB:58:81:5D:4D" // mac của host đích đến }, { "type": "ETH_SRC", "mac": "62:D6:0A:99:C5:DB" // mac của host gửi, mấy cái sau tương tự } ] } }, { "id": "52917298863470654", "tableId": "0", "appId": "org.onosproject.net.intent", "groupId": 0, "priority": 55, "timeout": 0, "isPermanent": true, "deviceId": "of:0000000000000001", "state": "ADDED", "life": 1689, "packets": 0, "bytes": 0, "liveType": "UNKNOWN", "lastSeen": 1557803155885, "treatment": { "instructions": [ { "type": "OUTPUT", "port": "3" } ], "deferred": [] }, "selector": { "criteria": [ { "type": "IN_PORT", "port": 2 }, { "type": "ETH_DST", "mac": "62:D6:0A:99:C5:DB" }, { "type": "ETH_SRC", "mac": "8E:BB:58:81:5D:4D" } ] } }, { "id": "52917298863470654", "tableId": "0", "appId": "org.onosproject.net.intent", "groupId": 0, "priority": 55, "timeout": 0, "isPermanent": true, "deviceId": "of:0000000000000003", "life": 1689, "packets": 0, "bytes": 0, "liveType": "UNKNOWN",
{ "id": "52917298863470654", "tableId": "0", "appId": "org.onosproject.net.intent", "groupId": 0, "priority": 55, "timeout": 0, "isPermanent": true, "deviceId": "of:0000000000000003", "state": "ADDED", "life": 1689, "packets": 0, "bytes": 0, "liveType": "UNKNOWN", "lastSeen": 1557803155885, "treatment": { "instructions": [ { "type": "OUTPUT", "port": "2" } ], "deferred": [] }, "selector": { "criteria": [ { "type": "IN_PORT", "port": 1 }, { "type": "ETH_DST", "mac": "62:D6:0A:99:C5:DB" }, { "type": "ETH_SRC", "mac": "8E:BB:58:81:5D:4D" } ] } }, { "id": "52917298863470654", "tableId": "0", "appId": "org.onosproject.net.intent", "groupId": 0, "priority": 55, "timeout": 0, "isPermanent": true, "deviceId": "of:0000000000000002", "state": "ADDED", "life": 1689, "packets": 0, "bytes": 0, "liveType": "UNKNOWN", "lastSeen": 1557803155885, "treatment": { "instructions": [ { "type": "OUTPUT", "port": "3" } ], "deferred": [] }, "selector": { "criteria": [ { "type": "IN_PORT", "port": 2 }, { "type": "ETH_DST", "mac": "8E:BB:58:81:5D:4D" }, { "type": "ETH_SRC", "mac": "62:D6:0A:99:C5:DB" } ] } }, { "id": "52917298863470654", "tableId": "0", "appId": "org.onosproject.net.intent", "groupId": 0, "priority": 55, "timeout": 0, "isPermanent": true, "deviceId": "of:0000000000000002", "state": "ADDED", "life": 1689, "packets": 0, "bytes": 0, "liveType": "UNKNOWN", "lastSeen": 1557803155885, "treatment": { "instructions": [ { "type": "OUTPUT", "port": "2" } ], "deferred": [] }, "selector": { "criteria": [ { "type": "IN_PORT", "port": 3 }, { "type": "ETH_DST", "mac": "62:D6:0A:99:C5:DB" }, { "type": "ETH_SRC", "mac": "8E:BB:58:81:5D:4D" } ] } } ] }
Bạn cho mình hỏi thêm chút được ko ạ
xin lỗi bạn nhé, cái này mình làm cũng từ lâu rồi nên giờ ko nhớ nữa, cài lại máy nên cũng mất hết source code rồi. mình nhớ hồi đấy làm cái này cũng phải mò google vs homepage mãi mới config được
((