commit
2db504266a
|
@ -389,7 +389,7 @@ func (a *Allocator) getPredefinedPool(as string, ipV6 bool) (*net.IPNet, error)
|
|||
}
|
||||
|
||||
if as != localAddressSpace && as != globalAddressSpace {
|
||||
return nil, types.NotImplementedErrorf("no default pool availbale for non-default addresss spaces")
|
||||
return nil, types.NotImplementedErrorf("no default pool available for non-default address spaces")
|
||||
}
|
||||
|
||||
aSpace, err := a.getAddrSpace(as)
|
||||
|
|
|
@ -145,7 +145,7 @@ func (p *PortBinding) String() string {
|
|||
return ret
|
||||
}
|
||||
|
||||
// FromString reads the TransportPort structure from string
|
||||
// FromString reads the PortBinding structure from string
|
||||
func (p *PortBinding) FromString(s string) error {
|
||||
ps := strings.Split(s, "/")
|
||||
if len(ps) != 3 {
|
||||
|
|
|
@ -216,7 +216,7 @@ func TestCompareIPMask(t *testing.T) {
|
|||
}
|
||||
}
|
||||
|
||||
func TestUtilGetHostPortionIP(t *testing.T) {
|
||||
func TestUtilGetHostPartIP(t *testing.T) {
|
||||
input := []struct {
|
||||
ip net.IP
|
||||
mask net.IPMask
|
||||
|
|
Loading…
Reference in New Issue