-
Notifications
You must be signed in to change notification settings - Fork 21
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
implement icmp responder #2
Conversation
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>
ctx := signalctx.WithSignals(context.Background()) | ||
ctx, cancel := context.WithCancel(ctx) | ||
|
||
// setup logging |
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
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>
nse, err := registry.NewNetworkServiceEndpointRegistryClient(cc).Register(context.Background(), ®istry.NetworkServiceEndpoint{ | ||
Name: config.EndpointName, | ||
NetworkServiceNames: []string{config.Name}, | ||
ExpirationTime: ×tamp.Timestamp{Seconds: time.Now().Add(time.Hour * 24).Unix()}, | ||
}) | ||
logrus.Infof("nse: %+v", nse) |
There was a problem hiding this comment.
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
#1