forked from sonic-net/sonic-buildimage
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[rfc4363]: Update FDB logics per change of the SAI (sonic-net#37)
In SAI 1.0, the FDB entry no longer contains the port ID. Instead, it contains the bridge port ID which then corelates to the port ID. Signed-off-by: Shu0T1an ChenG <shuche@microsoft.com>
- Loading branch information
Shuotian Cheng
authored
Sep 21, 2017
1 parent
186a4f6
commit 45e4e78
Showing
3 changed files
with
39 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,20 @@ | ||
{ | ||
"ASIC_STATE:SAI_OBJECT_TYPE_FDB_ENTRY:{\"mac\":\"52:54:00:DE:B3:91\",\"vlan\":\"4092\"}": { | ||
"SAI_FDB_ENTRY_ATTR_PORT_ID": "oid:0x100000000001b", | ||
"ASIC_STATE:SAI_OBJECT_TYPE_FDB_ENTRY:{\"bridge_id\":\"oid:0x0\",\"bridge_type\":\"SAI_FDB_ENTRY_BRIDGE_TYPE_1Q\",\"mac\":\"7C:FE:90:80:9F:04\",\"switch_id\":\"oid:0x21000000000000\",\"vlan\":\"1000\"}": { | ||
"SAI_FDB_ENTRY_ATTR_BRIDGE_PORT_ID": "oid:0x3a000000000616", | ||
"SAI_FDB_ENTRY_ATTR_TYPE": "SAI_FDB_ENTRY_TYPE_DYNAMIC" | ||
}, | ||
"ASIC_STATE:SAI_OBJECT_TYPE_FDB_ENTRY:{\"mac\":\"52:54:00:93:A5:61\",\"vlan\":\"1\"}": { | ||
"SAI_FDB_ENTRY_ATTR_PORT_ID": "oid:0x100000000001b", | ||
"ASIC_STATE:SAI_OBJECT_TYPE_FDB_ENTRY:{\"bridge_id\":\"oid:0x0\",\"bridge_type\":\"SAI_FDB_ENTRY_BRIDGE_TYPE_1Q\",\"mac\":\"7C:FE:90:80:9F:06\",\"switch_id\":\"oid:0x21000000000000\",\"vlan\":\"1000\"}": { | ||
"SAI_FDB_ENTRY_ATTR_BRIDGE_PORT_ID": "oid:0x3a000000000608", | ||
"SAI_FDB_ENTRY_ATTR_TYPE": "SAI_FDB_ENTRY_TYPE_DYNAMIC" | ||
}, | ||
"ASIC_STATE:SAI_OBJECT_TYPE_FDB_ENTRY:{\"mac\":\"52:54:00:9E:94:6F\",\"vlan\":\"4091\"}": { | ||
"SAI_FDB_ENTRY_ATTR_PORT_ID": "oid:0x1000000000005", | ||
"SAI_FDB_ENTRY_ATTR_TYPE": "SAI_FDB_ENTRY_TYPE_DYNAMIC" | ||
}, | ||
"ASIC_STATE:SAI_OBJECT_TYPE_FDB_ENTRY:{\"mac\":\"52:54:00:81:6D:86\",\"vlan\":\"4093\"}": { | ||
"SAI_FDB_ENTRY_ATTR_PORT_ID": "oid:0x100000000000b", | ||
"SAI_FDB_ENTRY_ATTR_TYPE": "SAI_FDB_ENTRY_TYPE_DYNAMIC" | ||
}, | ||
"ASIC_STATE:SAI_OBJECT_TYPE_FDB_ENTRY:{\"mac\":\"7C:FE:90:80:9F:5C\",\"vlan\":\"1000\"}": { | ||
"SAI_FDB_ENTRY_ATTR_PORT_ID": "oid:0x100000000001b", | ||
"SAI_FDB_ENTRY_ATTR_TYPE": "SAI_FDB_ENTRY_TYPE_DYNAMIC" | ||
"ASIC_STATE:SAI_OBJECT_TYPE_BRIDGE_PORT:oid:0x3a000000000616": { | ||
"SAI_BRIDGE_PORT_ATTR_TYPE": "SAI_BRIDGE_PORT_TYPE_PORT", | ||
"SAI_BRIDGE_PORT_ATTR_PORT_ID": "oid:0x1000000000006", | ||
"SAI_BRIDGE_PORT_ATTR_ADMIN_STATE": "true" | ||
}, | ||
"ASIC_STATE:SAI_OBJECT_TYPE_FDB_ENTRY:{\"mac\":\"52:54:00:9E:94:6F\",\"vlan\":\"1\"}": { | ||
"SAI_FDB_ENTRY_ATTR_PORT_ID": "oid:0x100000000001b", | ||
"SAI_FDB_ENTRY_ATTR_TYPE": "SAI_FDB_ENTRY_TYPE_DYNAMIC" | ||
}, | ||
"ASIC_STATE:SAI_OBJECT_TYPE_FDB_ENTRY:{\"mac\":\"52:54:00:E4:27:F7\",\"vlan\":\"1\"}": { | ||
"SAI_FDB_ENTRY_ATTR_PORT_ID": "oid:0x100000000001b", | ||
"SAI_FDB_ENTRY_ATTR_TYPE": "SAI_FDB_ENTRY_TYPE_DYNAMIC" | ||
}, | ||
"ASIC_STATE:SAI_OBJECT_TYPE_FDB_ENTRY:{\"mac\":\"00:1C:73:44:58:46\",\"vlan\":\"4078\"}": { | ||
"SAI_FDB_ENTRY_ATTR_PORT_ID": "oid:0x2000000000578", | ||
"SAI_FDB_ENTRY_ATTR_TYPE": "SAI_FDB_ENTRY_TYPE_DYNAMIC" | ||
"ASIC_STATE:SAI_OBJECT_TYPE_BRIDGE_PORT:oid:0x3a000000000608": { | ||
"SAI_BRIDGE_PORT_ATTR_TYPE": "SAI_BRIDGE_PORT_TYPE_PORT", | ||
"SAI_BRIDGE_PORT_ATTR_PORT_ID": "oid:0x1000000000008", | ||
"SAI_BRIDGE_PORT_ATTR_ADMIN_STATE": "true" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters