SDN types should used fixed width integers
@@ -20,7 +20,7 @@ type ClusterNetwork struct {
// Network is a CIDR string to specify the global overlay network's L3 space
Network string `json:"network"`
// HostSubnetLength is the number of bits to allocate to each host's subnet e.g. 8 would mean a /24 network on the host
- HostSubnetLength int `json:"hostsubnetlength"`
+ HostSubnetLength uint32 `json:"hostsubnetlength"`
// ServiceNetwork is the CIDR string to specify the service network
ServiceNetwork string `json:"serviceNetwork"`
// PluginName is the name of the network plugin
@@ -69,7 +69,7 @@ type NetNamespace struct {
// NetName is the name of the network namespace
NetName string `json:"netname"`
// NetID is the network identifier of the network namespace assigned to each overlay network packet
- NetID uint `json:"netid"`
+ NetID uint32 `json:"netid"`
}
// NetNamespaceList is a collection of NetNamespaces
