Actions
Bug #5271
closednlsrc advertise|withdraw should reflect success/failure in exit code
Start date:
06/15/2023
Due date:
% Done:
100%
Estimated time:
3.00 h
Description
When nlsrc advertise
and nlsrc withdraw
commands is invoked when NFD is ready but NLSR is not yet started, these commands would receive Nack from NFD.
Currently, these commands would print "Request timed out (code: 10060, error: Nack)" and then exit with zero.
This makes it difficult to retry the advertise/withdraw operation in a bash script.
These commands should return a non-zero exit code if it cannot reach NLSR or if it receives errors such as authentication rejection.
However, in case of advertising/withdrawing an already advertised/withdrawn prefix, the command should still return zero exit code because the desired effect is already in place.
Updated by Junxiao Shi over 1 year ago
- Status changed from New to Resolved
Updated by Junxiao Shi over 1 year ago
- Status changed from Resolved to Closed
- Assignee set to Junxiao Shi
- % Done changed from 0 to 100
Actions