Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement icmp responder #2

Merged

Conversation

fkautz
Copy link
Member

@fkautz fkautz commented Sep 7, 2020

#1

Signed-off-by: Frederick F. Kautz IV <fkautz@alumni.cmu.edu>
main.go Outdated Show resolved Hide resolved
main.go Show resolved Hide resolved
Signed-off-by: Frederick F. Kautz IV <fkautz@alumni.cmu.edu>
Signed-off-by: Frederick F. Kautz IV <fkautz@alumni.cmu.edu>
Signed-off-by: Frederick F. Kautz IV <fkautz@alumni.cmu.edu>
ctx := signalctx.WithSignals(context.Background())
ctx, cancel := context.WithCancel(ctx)

// setup logging
Copy link
Member

Choose a reason for hiding this comment

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

You may wish to consider this style of section comment:
https://github.com/networkservicemesh/cmd-nsc/blob/master/main.go#L75

nsmTarget = config.ConnectTo.String()
}

cc, err := grpc.DialContext(ctx,
Copy link
Member

Choose a reason for hiding this comment

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

You may want to call out here that you are registering the networkservice in this section.

Signed-off-by: Frederick F. Kautz IV <fkautz@alumni.cmu.edu>
Signed-off-by: Frederick F. Kautz IV <fkautz@alumni.cmu.edu>
Signed-off-by: Frederick F. Kautz IV <fkautz@alumni.cmu.edu>
Signed-off-by: Frederick F. Kautz IV <fkautz@alumni.cmu.edu>
Signed-off-by: Frederick F. Kautz IV <fkautz@alumni.cmu.edu>
@edwarnicke edwarnicke merged commit 33ba90a into networkservicemesh:master Sep 7, 2020
Comment on lines +157 to +162
nse, err := registry.NewNetworkServiceEndpointRegistryClient(cc).Register(context.Background(), &registry.NetworkServiceEndpoint{
Name: config.EndpointName,
NetworkServiceNames: []string{config.Name},
ExpirationTime: &timestamp.Timestamp{Seconds: time.Now().Add(time.Hour * 24).Unix()},
})
logrus.Infof("nse: %+v", nse)
Copy link
Member

Choose a reason for hiding this comment

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

I think we also need to register network service

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants