[VOL-1686][BAL3.0 Brigade]NNI activation failure
Change-Id: I97ef794eb898f5856b95e7321ed46f487764bfc7
diff --git a/agent/common/core.h b/agent/common/core.h
index f19e3aa..47666ac 100644
--- a/agent/common/core.h
+++ b/agent/common/core.h
@@ -63,6 +63,7 @@
uint32_t GetPortNum_(uint32_t flow_id);
int get_status_bcm_cli_quit(void);
uint16_t get_dev_id(void);
+Status pushOltOperInd(uint32_t intf_id, const char *type, const char *state);
void stats_collection();
#endif
diff --git a/agent/common/main.cc b/agent/common/main.cc
index 0454337..47fd117 100644
--- a/agent/common/main.cc
+++ b/agent/common/main.cc
@@ -50,16 +50,22 @@
for (int i = 0; i < NumPonIf_(); i++) {
status = EnablePonIf_(i);
if (!status.ok()) {
- // FIXME - raise alarm to report error in enabling PON
+ // raise alarm to report error in enabling PON
+ pushOltOperInd(i, "pon", "down");
}
+ else
+ pushOltOperInd(i, "pon", "up");
}
sleep(2);
// Enable all NNI interfaces.
for (int i = 0; i < NumNniIf_(); i++) {
status = EnableUplinkIf_(i);
if (!status.ok()) {
- // FIXME - raise alarm to report error in enabling PON
+ // raise alarm to report error in enabling PON
+ pushOltOperInd(i, "nni", "down");
}
+ else
+ pushOltOperInd(i, "nni", "up");
}
RunServer();