[swss]: Clear MUX-related state DB tables on start (#6759)
* Add *MUX_CABLE_TABLE* to set of tables to clear on SWSS start, which will clear HW_MUX_CABLE_TABLE and MUX_CABLE_TABLE * Order swss to start before pmon to ensure that DBs are cleared before xcvrd (running inside pmon) starts and re-populates the tables Signed-off-by: Lawrence Lee <lawlee@microsoft.com>
This commit is contained in:
parent
19ecdbb4e1
commit
97c605f1f7
@ -12,7 +12,7 @@ Requires=opennsl-modules.service
|
||||
Requires=updategraph.service
|
||||
After=updategraph.service
|
||||
After=interfaces-config.service
|
||||
Before=ntp-config.service
|
||||
Before=ntp-config.service pmon.service
|
||||
StartLimitIntervalSec=1200
|
||||
StartLimitBurst=3
|
||||
|
||||
|
@ -147,7 +147,7 @@ start() {
|
||||
$SONIC_DB_CLI ASIC_DB FLUSHDB
|
||||
$SONIC_DB_CLI COUNTERS_DB FLUSHDB
|
||||
$SONIC_DB_CLI FLEX_COUNTER_DB FLUSHDB
|
||||
clean_up_tables STATE_DB "'PORT_TABLE*', 'MGMT_PORT_TABLE*', 'VLAN_TABLE*', 'VLAN_MEMBER_TABLE*', 'LAG_TABLE*', 'LAG_MEMBER_TABLE*', 'INTERFACE_TABLE*', 'MIRROR_SESSION*', 'VRF_TABLE*', 'FDB_TABLE*', 'FG_ROUTE_TABLE*', 'BUFFER_POOL*', 'BUFFER_PROFILE*'"
|
||||
clean_up_tables STATE_DB "'PORT_TABLE*', 'MGMT_PORT_TABLE*', 'VLAN_TABLE*', 'VLAN_MEMBER_TABLE*', 'LAG_TABLE*', 'LAG_MEMBER_TABLE*', 'INTERFACE_TABLE*', 'MIRROR_SESSION*', 'VRF_TABLE*', 'FDB_TABLE*', 'FG_ROUTE_TABLE*', 'BUFFER_POOL*', 'BUFFER_PROFILE*', '*MUX_CABLE_TABLE*'"
|
||||
fi
|
||||
|
||||
# start service docker
|
||||
|
Loading…
Reference in New Issue
Block a user