SEBA-349 GRPC
added xos proto files
Change-Id: I59feae392782331d11e1ac506c18f772ccfb8898
diff --git a/models/inventory/gather.go b/models/inventory/gather.go
index 75e762f..573fcb2 100644
--- a/models/inventory/gather.go
+++ b/models/inventory/gather.go
@@ -48,6 +48,7 @@
}
type Ont struct {
Number int
+ Active bool
SVlan uint32
CVlan uint32
SerialNumber string
@@ -114,8 +115,8 @@
port := Port{AbstractNumber: i + 1, PhysicalNumber: ponPort.Number}
onts := []Ont{}
for _, physicalONT := range ponPort.Onts {
- if physicalONT.Active {
- ont := Ont{Number: physicalONT.Number, SVlan: physicalONT.Svlan, CVlan: physicalONT.Cvlan, SerialNumber: physicalONT.SerialNumber,
+ if physicalONT.CircuitID != "" {
+ ont := Ont{Number: physicalONT.Number, Active: physicalONT.Active, SVlan: physicalONT.Svlan, CVlan: physicalONT.Cvlan, SerialNumber: physicalONT.SerialNumber,
NasPortID: physicalONT.NasPortID, CircuitID: physicalONT.CircuitID}
onts = append(onts, ont)
}