-
Notifications
You must be signed in to change notification settings - Fork 664
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[sflow][db_migrator] Egress Sflow support (#3020)
* [sflow][db_migrator] Egress Sflow support
- Loading branch information
1 parent
02a588b
commit 6dfeee6
Showing
6 changed files
with
247 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"SFLOW_TABLE:global": { | ||
"admin_state": "up", | ||
"sample_direction": "rx" | ||
}, | ||
"SFLOW_SESSION_TABLE:Ethernet6": { | ||
"admin_state": "up", | ||
"sample_direction": "rx", | ||
"sample_rate": "1000" | ||
}, | ||
"SFLOW_SESSION_TABLE:Ethernet7": { | ||
"admin_state": "up", | ||
"sample_direction": "rx", | ||
"sample_rate": "1000" | ||
}, | ||
"SFLOW_SESSION_TABLE:Ethernet8": { | ||
"admin_state": "up", | ||
"sample_direction": "rx", | ||
"sample_rate": "1000" | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"SFLOW_TABLE:global": { | ||
"admin_state": "up" | ||
}, | ||
"SFLOW_SESSION_TABLE:Ethernet6": { | ||
"admin_state": "up", | ||
"sample_rate": "1000" | ||
}, | ||
"SFLOW_SESSION_TABLE:Ethernet7": { | ||
"admin_state": "up", | ||
"sample_rate": "1000" | ||
}, | ||
"SFLOW_SESSION_TABLE:Ethernet8": { | ||
"admin_state": "up", | ||
"sample_rate": "1000" | ||
} | ||
} |
57 changes: 57 additions & 0 deletions
57
tests/db_migrator_input/config_db/sflow_table_expected.json
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 |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{ | ||
"VERSIONS|DATABASE": { | ||
"VERSION": "version_4_0_5" | ||
}, | ||
"SFLOW|global": { | ||
"admin_state": "up", | ||
"sample_direction": "rx" | ||
}, | ||
"SFLOW_SESSION|Ethernet0": { | ||
"admin_state": "up", | ||
"sample_direction": "rx", | ||
"sample_rate": "1000" | ||
}, | ||
"SFLOW_SESSION|Ethernet2": { | ||
"admin_state": "down", | ||
"sample_direction": "rx", | ||
"sample_rate": "2000" | ||
}, | ||
"SFLOW_SESSION|Ethernet4": { | ||
"admin_state": "up", | ||
"sample_direction": "rx", | ||
"sample_rate": "4000" | ||
}, | ||
"PORT|Ethernet0": { | ||
"admin_status": "up", | ||
"alias": "Ethernet1/1", | ||
"description": "", | ||
"index": "1", | ||
"lanes": "77,78", | ||
"mtu": "9100", | ||
"pfc_asym": "off", | ||
"speed": "100000", | ||
"tpid": "0x8100" | ||
}, | ||
"PORT|Ethernet2": { | ||
"admin_status": "up", | ||
"alias": "Ethernet2/1", | ||
"description": "", | ||
"index": "2", | ||
"lanes": "79,80", | ||
"mtu": "9100", | ||
"pfc_asym": "off", | ||
"speed": "100000", | ||
"tpid": "0x8100" | ||
}, | ||
"PORT|Ethernet4": { | ||
"admin_status": "up", | ||
"alias": "Ethernet4/1", | ||
"description": "", | ||
"index": "3", | ||
"lanes": "81,82", | ||
"mtu": "9100", | ||
"pfc_asym": "off", | ||
"speed": "100000", | ||
"tpid": "0x8100" | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{ | ||
"VERSIONS|DATABASE": { | ||
"VERSION": "version_4_0_2" | ||
}, | ||
"SFLOW|global": { | ||
"admin_state": "up" | ||
}, | ||
"SFLOW_SESSION|Ethernet0": { | ||
"admin_state": "up", | ||
"sample_rate": "1000" | ||
}, | ||
"SFLOW_SESSION|Ethernet2": { | ||
"admin_state": "down", | ||
"sample_rate": "2000" | ||
}, | ||
"SFLOW_SESSION|Ethernet4": { | ||
"admin_state": "up", | ||
"sample_rate": "4000" | ||
}, | ||
"PORT|Ethernet0": { | ||
"admin_status": "up", | ||
"alias": "Ethernet1/1", | ||
"description": "", | ||
"index": "1", | ||
"lanes": "77,78", | ||
"mtu": "9100", | ||
"pfc_asym": "off", | ||
"speed": "100000", | ||
"tpid": "0x8100" | ||
}, | ||
"PORT|Ethernet2": { | ||
"admin_status": "up", | ||
"alias": "Ethernet2/1", | ||
"description": "", | ||
"index": "2", | ||
"lanes": "79,80", | ||
"mtu": "9100", | ||
"pfc_asym": "off", | ||
"speed": "100000", | ||
"tpid": "0x8100" | ||
}, | ||
"PORT|Ethernet4": { | ||
"admin_status": "up", | ||
"alias": "Ethernet4/1", | ||
"description": "", | ||
"index": "3", | ||
"lanes": "81,82", | ||
"mtu": "9100", | ||
"pfc_asym": "off", | ||
"speed": "100000", | ||
"tpid": "0x8100" | ||
} | ||
} |
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