SEBA-261
refactor to support serialize/deserialize
Change-Id: Icdc0bc2bb06a9d1c3240c0f46e1de02953a0b017
diff --git a/models/physical/ponport.go b/models/physical/ponport.go
index ca321fd..683489e 100644
--- a/models/physical/ponport.go
+++ b/models/physical/ponport.go
@@ -27,7 +27,7 @@
Number int
DeviceID string
Onts [64]Ont
- Parent *Edgecore `json:"-"`
+ Parent *SimpleOLT `json:"-"`
}
/*
@@ -70,7 +70,6 @@
func (port *PONPort) ActivateOnt(number int, sVlan int, cVlan int, serialNumber string, nasPortID string, circuitID string) error {
slot := port.Parent
chassis := slot.Parent
- fmt.Printf("Calling ActivateOnt and port state is %t\n", port.Onts[number-1].Active)
if port.Onts[number-1].Active {
e := AllReadyActiveError{ontNumber: number, slotNum: slot.Number, ponportNum: port.Number, clli: chassis.CLLI}
@@ -90,7 +89,6 @@
func (port *PONPort) DeleteOnt(number int, sVlan int, cVlan int, serialNumber string) error {
slot := port.Parent
chassis := slot.Parent
- fmt.Printf("Calling ActivateOnt and port state is %t\n", port.Onts[number-1].Active)
if port.Onts[number-1].Active != true {
e := AllReadyDeactivatedError{ontNumber: number, slotNum: slot.Number, ponportNum: port.Number, clli: chassis.CLLI}
return &e