SEBA-258 - Added MONGODB backup
Change-Id: I2542e7dfc894dfa5a1269c6be99cfa8036b9911c
diff --git a/models/physical/olt.go b/models/physical/olt.go
index 721e731..c800ad5 100644
--- a/models/physical/olt.go
+++ b/models/physical/olt.go
@@ -45,7 +45,7 @@
Number int
Ports []PONPort
Active bool
- Parent *Chassis `json:"-"`
+ Parent *Chassis `json:"-" bson:"-"`
DataSwitchPort int
}
diff --git a/models/physical/ont.go b/models/physical/ont.go
index 79c21ee..21fbbae 100644
--- a/models/physical/ont.go
+++ b/models/physical/ont.go
@@ -20,12 +20,12 @@
Ont represents a single ont/onu connect to a splitter on a Port
*/
type Ont struct {
- Number int
- Svlan int
- Cvlan int
- SerialNumber string
- Parent *PONPort `json:"-"`
- Active bool
- NasPortID string
- CircuitID string
+ Number int `json:",omitempty"`
+ Svlan int `,json:",omitempty"`
+ Cvlan int `,json:",omitempty"`
+ SerialNumber string `,json:",omitempty"`
+ Parent *PONPort `json:"-" bson:"-"`
+ Active bool `json:",omitempty"`
+ NasPortID string `json:",omitempty"`
+ CircuitID string `json:",omitempty"`
}
diff --git a/models/physical/ponport.go b/models/physical/ponport.go
index 683489e..9c626c3 100644
--- a/models/physical/ponport.go
+++ b/models/physical/ponport.go
@@ -27,7 +27,7 @@
Number int
DeviceID string
Onts [64]Ont
- Parent *SimpleOLT `json:"-"`
+ Parent *SimpleOLT `json:"-" bson:"-"`
}
/*