Skip to content
This repository has been archived by the owner on Nov 28, 2017. It is now read-only.

Hostname is added for service info #17

Merged
merged 2 commits into from
Aug 10, 2016

Conversation

melanietom
Copy link
Contributor

For bgpinspect we need host name to ip translation hence all netplugins register service info with their host name included.

@@ -35,6 +35,7 @@ type consulServiceState struct {
Port int // Port number where its listening
SessionID string // session id assigned by consul
stopChan chan struct{} // Channel to stop ttl refresh
Hostname string // Host name where its running
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like this field is not being set. Can you please set it in RegisterService()?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@shaleman
Copy link
Contributor

LGTM other than the minor comment..

@shaleman shaleman merged commit 769c7ec into contiv-experimental:master Aug 10, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants