topology: add more omitempty tags
GitOrigin-RevId:
@@ -101,7 +101,7 @@ type GatewayInfo struct {
// the neighboring AS).
type BRInterface struct {
Underlay Underlay `json:"underlay,omitempty"`
- Bandwidth int `json:"bandwidth"`
+ Bandwidth int `json:"bandwidth,omitempty"`
IA string `json:"isd_as"`
LinkTo string `json:"link_to"`
MTU int `json:"mtu"`
@@ -110,8 +110,8 @@ type BRInterface struct {
// Underlay is the underlay information for a BR interface.
type Underlay struct {
- Public string `json:"public"`
- Remote string `json:"remote"`
+ Public string `json:"public,omitempty"`
+ Remote string `json:"remote,omitempty"`
Bind string `json:"bind,omitempty"`
}
