[VOL-1638][BAL3.0 Brigade] tcont/gem creation and scheduler
[VOL-1672][BAL3.0 Brigade] BAL v3.0 removed inner_TPID and outer_TPID
[VOL-1673][BAL3.0 Brigade] Create scheduler with addition parameter for BAL 3.0
Change-Id: I1aa6c92e2eb6596f7f9f61ac6d38a651bf2a3929
diff --git a/agent/common/main.cc b/agent/common/main.cc
index 47fd117..4e461fa 100644
--- a/agent/common/main.cc
+++ b/agent/common/main.cc
@@ -44,8 +44,6 @@
ProbeDeviceCapabilities_();
sleep(2);
- ProbePonIfTechnology_();
- sleep(2);
// Enable all PON interfaces.
for (int i = 0; i < NumPonIf_(); i++) {
status = EnablePonIf_(i);
@@ -58,6 +56,7 @@
}
sleep(2);
// Enable all NNI interfaces.
+#if 0
for (int i = 0; i < NumNniIf_(); i++) {
status = EnableUplinkIf_(i);
if (!status.ok()) {
@@ -67,7 +66,15 @@
else
pushOltOperInd(i, "nni", "up");
}
-
+#endif
+ //only for nni-65536 mapping to intf_id 0
+ status = SetStateUplinkIf_(0, true);
+ if (!status.ok()) {
+ // raise alarm to report error in enabling NNI
+ pushOltOperInd(0, "nni", "down");
+ }
+ else
+ pushOltOperInd(0, "nni", "up");
RunServer();
return 0;