Skip to content

Commit 91e0885

Browse files
committed
Add logs
Signed-off-by: t-colinle <[email protected]>
1 parent 21cfc83 commit 91e0885

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/sonic-bgpcfgd/bgpcfgd/managers_device_global.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -176,17 +176,20 @@ def set_received_bandwidth(self, status):
176176
cmd_list.append("router bgp %s" % bgp_asn)
177177

178178
if status == "ignore":
179+
log_notice("DeviceGlobalCfgMgr:: Ignoring received_bandwdith...")
179180
cmd_list.append(" bgp bestpath bandwidth ignore")
180181
elif status == "allow":
182+
log_notice("DeviceGlobalCfgMgr:: Enabling received_bandwdith with allow...")
181183
cmd_list.append(" no bgp bestpath bandwidth")
182184
elif status == "skip_missing":
185+
log_notice("DeviceGlobalCfgMgr:: Enabling received_bandwdith with skip_missing...")
183186
cmd_list.append(" bgp bestpath bandwidth skip-missing")
184187
elif status == "default_weight_for_missing":
188+
log_notice("DeviceGlobalCfgMgr:: Enabling received_bandwdith with default_weight_for_missing...")
185189
cmd_list.append(" bgp bestpath bandwidth default-weight-for-missing")
186190
else:
187191
return False
188192

189-
190193
self.cfg_mgr.push_list(cmd_list)
191194

192195
log_debug("DeviceGlobalCfgMgr::Done")

0 commit comments

Comments
 (0)