From d1df4717627acf9421861545b71e411acf3c5f32 Mon Sep 17 00:00:00 2001 From: Joe LeVeque Date: Fri, 3 Nov 2017 19:10:42 -0700 Subject: [PATCH] [ledd]: Update non-port-name flags to ignore in DB table (#10) --- sonic-ledd/scripts/ledd | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sonic-ledd/scripts/ledd b/sonic-ledd/scripts/ledd index c6a57b4f6..1a4782cd4 100644 --- a/sonic-ledd/scripts/ledd +++ b/sonic-ledd/scripts/ledd @@ -214,8 +214,9 @@ def main(): # Remove table name prefix port_name = key[len(PORT_TABLE_PREFIX):] - # TODO: Once the DB is fixed and this 'ConfigDone' entry is gone, remove this check - if port_name == 'ConfigDone': + # TODO: Once these flag entries have been removed from the DB, + # we can remove this check + if port_name in ["PortConfigDone", "PortInitDone"]: continue port_status_dict[port_name] = 'down'