]> git.puffer.fish Git - matthieu/frr.git/commit
Fix for PTM cable status change notification not being handeled in Zebra
authorradhika <radhika@cumulusnetworks.com>
Wed, 26 Aug 2015 19:37:46 +0000 (12:37 -0700)
committerradhika <radhika@cumulusnetworks.com>
Wed, 26 Aug 2015 19:37:46 +0000 (12:37 -0700)
commitb255a4b1956b179ef23bd728a58b6f1c502cc792
treef08bd9b5de810d891b2c86439008b752f350f1c6
parent4334ed8d44ca947bc163b24499d76ab7357775dc
Fix for PTM cable status change notification not being handeled in Zebra

Ticket: CM-6690
Reviewed By: Donald, Kanna
Testing Done:

Double commit of 4bbc0cf4a98d7fd2aabe47241424fa7c5a3ae1eb from br2.5 to master

PTM cable status updates were not being handled in the notification callback registered with the ptm lib. This results in interface ptm status mismatch between PTM and zebra when interface cable check status changes (pass->fail or fail->pass). Zebra requests PTM to send cable status updates using get-status command and PTM sends the cable status updates as command responses to get-status. This was being handled in the commmand response callback registered with ptm lib. But, the subsequent status updates come as notifications and handling of those notifications that was missing in the notification callback. Fixed the issue by making a common callback for command responses and notifications. All the command responses other than the responses to get-status are dropped/ignored.
zebra/zebra_ptm.c