Commit Graph

40 Commits

Author SHA1 Message Date
Junxiao Shi 83be1dae4b use FaceUri and NetworkMonitor from ndn-cxx/net
This commit also contains a quick fix in LpReliability to avoid
ndn::lp::Packet::wireEncode(EncodingEstimator&).

refs #3940, #4156

Change-Id: Ice8e3649be21dd023ed1f6562c185f9e6721e45e
2017-06-30 13:37:37 +00:00
Junxiao Shi 16a3adfafc switch to ndn-cxx KeyChain v2
refs #4089

Change-Id: I32bc19db156de49275b681ef67f684b76631d50b
2017-05-26 17:38:51 +00:00
Junxiao Shi 1cce2a3014 mgmt: enable LocalUri in faces/create command response
Display LocalUri in 'nfdc face create' output.

refs #3956

Change-Id: I3c9ce266f218547bd6ba9509437178d271f680f7
2017-05-02 02:39:55 +00:00
Davide Pesavento 22db53973d rib+tools: use ndn::nfd::RouteOrigin instead of uint64_t
Change-Id: Ic8cbe95491a41e1d34b66d406da8637aeb5fd9e3
Refs: #3903
2017-04-14 20:48:20 -04:00
Junxiao Shi 8eda682a18 tools: nfdc route commands accept and print RouteOrigin strings
refs #3987

Change-Id: I47594546e3fe9279fff5ea6ade9ce38cb3b05b6c
2017-04-12 02:53:14 +00:00
Junxiao Shi b283f52c78 tools: nfdc strategy set/unset commands
nfdc set-strategy and nfdc unset-strategy are deprecated.

refs #3865

Change-Id: I934cbfcd567ac7ee33381ae4baf00b668977a0aa
2017-04-06 20:46:15 +00:00
Junxiao Shi f03d4796d7 mgmt+tools: rename 'datas' to 'data'
Plural form of 'data' is 'data'.

refs #3955

Change-Id: I62f5ebe53b8e36d565e5a243288eb12ae9a08014
2017-04-06 16:41:22 +00:00
Junxiao Shi 5d3e481956 tools: nfdc strategy list/show commands
refs #3865

Change-Id: I6cc115b3c3f3d0840814a329c68356bbe6ad2e3f
2017-04-05 16:52:59 +00:00
Junxiao Shi 0d97692b40 tools: nfdc face create command accepts local FaceUri
refs #4017

Change-Id: I2d13403f13c30146c53744828ba2a37a6fab7de2
2017-04-01 14:35:21 +00:00
Junxiao Shi f6af4f8913 tools: deprecate nfdc register/unregister/add-nexthop/remove-nexthop
They are replaced by 'nfdc route add' and 'nfdc route remove'.

refs #3866

Change-Id: I8040bf39ce9bd4b68409896c355beb12b0da5692
2017-03-09 16:20:14 +00:00
Junxiao Shi 1d62e62bc0 tools: nfdc route list and nfd route show commands
refs #3866

Change-Id: Ic8feab0ce9e5707c1cf382cdea7264e28e3edb30
2017-03-08 22:39:28 +00:00
Ashlesh Gawande f7bf4093be tools: fix compilation error due to ndn-cxx RouteFlags change
refs #3903

Change-Id: I799291d51d2b96ea1f7f8d07d000ae2c12300cf1
2017-03-04 03:06:26 +00:00
Junxiao Shi 084b79553f tools: nfdc route remove command
refs #3866

Change-Id: Iffbcf3face8758a52d35a854408f9910f4ba6c0b
2017-02-26 22:00:53 +00:00
Junxiao Shi 918e5d451e tools: nfdc route add command
This commit also simplifies 'nfdc face destroy' and its test case.

'nfdc register' is deprecated in favor of 'nfdc route add'.

refs #3866

Change-Id: I1de5cc0bc956d57b0793da920c1e87b3580a3297
2017-02-25 03:58:21 +00:00
Junxiao Shi d695801754 tools: deprecate nfdc create and nfdc destroy
They are deprecated in favor of nfdc face create and nfdc face destroy.

There is also a minor correction to nfdc-face man page.

refs #3864

Change-Id: I038bc604304ac5650101ee2afe30753e59061632
2017-02-20 03:34:48 +00:00
Davide Pesavento 26cbdbd904 tools: follow API change in ndn::nfd::Route
Change-Id: I67b770b4083afbea1fcf59fdcd183e971b1f6a6d
Refs: #3903
2017-02-19 21:48:21 -05:00
Junxiao Shi 36e5429622 tools: nfdc face list command with filters
refs #3864

Change-Id: Ie22e506bb2aeae8abf7c94b394e7aa56c840266f
2017-02-17 18:43:16 +00:00
Yanbiao Li 58ba3f9429 mgmt+tools: rework FacePersistency handling in faces/create and faces/update
1. enable changing persistency in faces/update command
2. reject faces/create request if the face already exists
3. nfdc changes to support the above

Change-Id: I659906da846608a42a768f08fb110ceee1a947a7
refs: #3232
2017-02-17 20:05:06 +08:00
Junxiao Shi 970f648843 tools: nfdc face create output fix
NFD faces/create command response does not contain a Uri field,
so nfdc face create output should not try to obtain canonical
remote FaceUri from the command response.

refs #3864

Change-Id: Idae4552e0e197257ea1277e12e20fe565a8562c6
2017-02-10 20:50:14 +00:00
Junxiao Shi 8f803f292e tools: use FindFace in nfdc face show command
This commit also uses FaceQueryFilter operator== in test cases.

refs #3864

Change-Id: I5096ab07ce02535364c5ac8f9e0f0ad27e55b96e
2017-02-10 03:04:28 +00:00
Junxiao Shi 05dd4441b0 tools: nfdc face destroy command
refs #3864

Change-Id: I1d070570c14364529c566273eba44b87413942b1
2017-02-06 22:50:07 +00:00
Junxiao Shi 1d7fef5810 tools: nfdc face create command
refs #3864

Change-Id: Icca589eceae0b78f68cda61e761dd4721ce54f9c
2017-02-02 05:33:14 +00:00
Junxiao Shi 056815ea8b tools: fix nfdc::text::ItemAttributes evaluation order bug
When multiple ItemAttributes::operator() invocations appear on the same
expression, they are not always evaluated left-to-right, causing incorrect
text output.

refs #3864

Change-Id: I4c99c5bc4a76b4becf83f368c9f253c0b254fc05
2017-01-29 16:39:19 +00:00
Junxiao Shi 215fd0b6d9 tools: import FacePersistency and FaceUri to nfdc namespace
refs #3864

Change-Id: I999fa2419f4d23368d924b536aee6f225017b570
2017-01-28 19:01:04 +00:00
Junxiao Shi 1f481fa1a3 tools: nfdc face show command
refs #3864

Change-Id: Ibee7b082681edc35e8c272b2363436dbc7eaf9c0
2017-01-26 15:14:43 +00:00
Junxiao Shi 88a062de78 tools: add exit code and streams to nfdc::ExecuteContext
Moving exit code to the context allows error handling routines to
rely only on the context.

Moving stdout and stderr streams to the context allows mocking in
unit tests, and allows sending output to a buffer for pre-processing
when we implement interactive mode.

refs #3864

Change-Id: Ibf59c12405d0eaca0597835cb2e30125b7f70adb
2017-01-26 03:10:05 +00:00
Eric Newberry 6d932e83d2 tools: display face flags in nfdc and nfd-status-http-server
refs #3733

Change-Id: Idd66ffb7594079d2738253d035792300fe3febef
2016-11-24 05:05:43 +00:00
Junxiao Shi ae889380da tools: nfdc status commands
refs #3780

Change-Id: I5222aacc0a7134978e9496c68a3b915dac4aee18
2016-11-23 04:52:51 +00:00
Junxiao Shi 6c13562d23 tools: nfdc help command
refs #3780

Change-Id: Ibd0e37bad127a38e582864fadd81afadc74baf48
2016-11-21 14:30:33 +00:00
Junxiao Shi c143afea10 tools: various improvements in nfdc
* use same underlying type for ParseMode and AvailableIn,
  to avoid potential errors when converting between them
* simplify AvailableIn stream output operator with text::Separator
* allow CommandParser::addCommand to accept bitwise OR'ed modes
* qualify nfdc logging sources with 'nfdc.' prefix

refs #3780

Change-Id: I2eee3d562184daf27305c2d5f2892637b63421c2
2016-09-20 13:04:51 +00:00
Junxiao Shi 3d1eb091c0 tools: nfdc status commands
These commands are added to nfdc:

    status show
    face list
    channel list
    strategy list
    fib list
    route list

They are implemented by calling into legacy nfd-status procedures,
and currently do not support filtering arguments.
Future commits will re-implement them directly with StatusReport.

refs #3749

Change-Id: I11f3f074966649c3732969ffa22f9b3938bb4bac
2016-09-14 19:20:20 +00:00
Junxiao Shi bf6acd5cc9 tools: normalize nfdc exit codes
refs #3749

Change-Id: I0c81dff095c170390f62de82badc0cca7b53392d
2016-09-14 03:57:57 +00:00
Junxiao Shi 737c43cdad tools: nfdc creates Face and KeyChain in main function
refs #3749

Change-Id: I169ad766634371b0192ebae640355298b78aaaa4
2016-09-14 02:51:44 +00:00
Junxiao Shi 25c6ce41d5 mgmt+rib: include ndn-cxx/mgmt/nfd/*
refs #3760

Change-Id: I9a2e3012af2f72495ce3259fa4f51ebaa8ea7096
2016-09-09 13:49:59 +00:00
Junxiao Shi 64567bb12a tools: nfdc command line parser
refs #3749

Change-Id: Ief301152212a6d501f0396b2c9834e860ddaf6c5
2016-09-04 16:00:27 +00:00
Junxiao Shi 2f741327e6 tools: legacy nfdc parses command with Boost.Program_options
refs #3749

Change-Id: I5274e0a2594323729834cd8001308ec699fbe6d6
2016-08-29 00:53:18 +00:00
Junxiao Shi 8c39bf0b9f tools: rename nfd::tools::nfdc::OutputFormat to ReportFormat
refs #3749

Change-Id: I4984d056c26f9ecbda25103ad60dc50bb60a4dec
2016-08-28 23:54:13 +00:00
Junxiao Shi 29b4128397 rib+tools: adapt to Controller::CommandFailCallback with ControlResponse
refs #3739

Change-Id: Icf5b3ed0bd997730a024bad2ccd258c8168b4ccb
2016-08-22 03:47:02 +00:00
Junxiao Shi 331ade75da tools: merge nfd-status into nfdc
nfd-status functionality is accessible through `nfdc legacy-nfd-status` subcommand,
and nfd-status is replaced with a shell script calling this subcommand.

refs #3749

Change-Id: Iab03f3bc9ddb4333a0b6ca5fb9c67f54e9960ab4
2016-08-19 14:07:19 +00:00
Junxiao Shi d243d71bf5 tools: split nfdc into multiple files
refs #3749

Change-Id: I24a3fd287773d0577d438e9ca24dc1dfab335a4f
2016-08-19 06:45:31 +00:00