mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Log when endpoint joins internal macvlan network
Signed-off-by: Pavel Matěja <pavel@verotel.cz>
This commit is contained in:
parent
e2b2318e14
commit
66a82d7268
1 changed files with 9 additions and 0 deletions
|
@ -73,6 +73,15 @@ func (d *driver) Join(nid, eid string, sboxKey string, jinfo driverapi.JoinInfo,
|
||||||
logrus.Debugf("Macvlan Endpoint Joined with IPv6_Addr: %s Gateway: %s MacVlan_Mode: %s, Parent: %s",
|
logrus.Debugf("Macvlan Endpoint Joined with IPv6_Addr: %s Gateway: %s MacVlan_Mode: %s, Parent: %s",
|
||||||
ep.addrv6.IP.String(), v6gw.String(), n.config.MacvlanMode, n.config.Parent)
|
ep.addrv6.IP.String(), v6gw.String(), n.config.MacvlanMode, n.config.Parent)
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
if len(n.config.Ipv4Subnets) > 0 {
|
||||||
|
logrus.Debugf("Macvlan Endpoint Joined with IPv4_Addr: %s, MacVlan_Mode: %s, Parent: %s",
|
||||||
|
ep.addr.IP.String(), n.config.MacvlanMode, n.config.Parent)
|
||||||
|
}
|
||||||
|
if len(n.config.Ipv6Subnets) > 0 {
|
||||||
|
logrus.Debugf("Macvlan Endpoint Joined with IPv6_Addr: %s MacVlan_Mode: %s, Parent: %s",
|
||||||
|
ep.addrv6.IP.String(), n.config.MacvlanMode, n.config.Parent)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
iNames := jinfo.InterfaceName()
|
iNames := jinfo.InterfaceName()
|
||||||
err = iNames.SetNames(vethName, containerVethPrefix)
|
err = iNames.SetNames(vethName, containerVethPrefix)
|
||||||
|
|
Loading…
Reference in a new issue