Skip to content

Add Virtual-IP of an endpoint as a secondary IP#1321

Merged
aboch merged 1 commit into
moby:masterfrom
mavenugo:secaddr
Jul 13, 2016
Merged

Add Virtual-IP of an endpoint as a secondary IP#1321
aboch merged 1 commit into
moby:masterfrom
mavenugo:secaddr

Conversation

@mavenugo

Copy link
Copy Markdown
Contributor

addresses issues such as moby/moby#24377 and ability to ping services by its name.

Signed-off-by: Madhu Venugopal [email protected]

Comment thread sandbox.go Outdated
ifaceOptions = append(ifaceOptions, sb.osSbox.InterfaceOptions().LinkLocalAddresses(i.llAddrs))
}
if len(ep.virtualIP) != 0 {
_, secVIP, err := net.ParseCIDR(fmt.Sprintf("%s/32", ep.virtualIP.String()))

@aboch aboch Jul 12, 2016

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please replace this with
secIP := &net.IPNet{IP: ep.VirtualIP, Mask: net.CIDRMask(32,32))}

@mavenugo

Copy link
Copy Markdown
Contributor Author

@aboch thanks for the comments. Updated. PTAL.

@aboch

aboch commented Jul 12, 2016

Copy link
Copy Markdown
Contributor

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants