Skip to content

Commit e7c29dc

Browse files
committed
incus-osd/api: Make more network fields omitempty
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
1 parent 2a129e1 commit e7c29dc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

incus-osd/api/system_network.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ type SystemNetworkInterface struct {
4646
Routes []SystemNetworkRoute `json:"routes,omitempty" yaml:"routes,omitempty"`
4747
Hwaddr string `json:"hwaddr" yaml:"hwaddr"`
4848
Roles []string `json:"roles,omitempty" yaml:"roles,omitempty"`
49-
LLDP bool `json:"lldp" yaml:"lldp"`
50-
StrictHwaddr bool `json:"strict_hwaddr" yaml:"strict_hwaddr"`
49+
LLDP bool `json:"lldp,omitempty" yaml:"lldp,omitempty"`
50+
StrictHwaddr bool `json:"strict_hwaddr,omitempty" yaml:"strict_hwaddr,omitempty"`
5151
}
5252

5353
// SystemNetworkBond contains information about a network bond.
@@ -62,7 +62,7 @@ type SystemNetworkBond struct {
6262
Hwaddr string `json:"hwaddr,omitempty" yaml:"hwaddr,omitempty"`
6363
Members []string `json:"members,omitempty" yaml:"members,omitempty"`
6464
Roles []string `json:"roles,omitempty" yaml:"roles,omitempty"`
65-
LLDP bool `json:"lldp" yaml:"lldp"`
65+
LLDP bool `json:"lldp,omitempty" yaml:"lldp,omitempty"`
6666
}
6767

6868
// SystemNetworkVLAN contains information about a network vlan.

0 commit comments

Comments
 (0)