bridge: don't use canonical CIDR address when setting up IP masquerade
This commit is contained in:
parent
7f9b1844b8
commit
37d2ee1d5d
@ -517,7 +517,7 @@ func cmdAdd(args *skel.CmdArgs) error {
|
|||||||
chain := utils.FormatChainName(n.Name, args.ContainerID)
|
chain := utils.FormatChainName(n.Name, args.ContainerID)
|
||||||
comment := utils.FormatComment(n.Name, args.ContainerID)
|
comment := utils.FormatComment(n.Name, args.ContainerID)
|
||||||
for _, ipc := range result.IPs {
|
for _, ipc := range result.IPs {
|
||||||
if err = ip.SetupIPMasq(ip.Network(&ipc.Address), chain, comment); err != nil {
|
if err = ip.SetupIPMasq(&ipc.Address, chain, comment); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1609,7 +1609,7 @@ var _ = Describe("bridge Operations", func() {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
FIt("configures a bridge and ipMasq rules for 0.4.0 config", func() {
|
It("configures a bridge and ipMasq rules for 0.4.0 config", func() {
|
||||||
err := originalNS.Do(func(ns.NetNS) error {
|
err := originalNS.Do(func(ns.NetNS) error {
|
||||||
defer GinkgoRecover()
|
defer GinkgoRecover()
|
||||||
tc := testCase{
|
tc := testCase{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user