Commit Graph

22 Commits

Author SHA1 Message Date
Junxiao Shi 530cf00d68 table: StrategyChoice::insert return value includes error description
The error description is used in the response to a strategy-choice/set
management command failure.

refs #3868

Change-Id: I14e0eb4dc311806a90ebfe60fa17177d2809d104
2017-01-03 14:43:16 +00:00
Junxiao Shi 65800d22e7 mgmt: change strategy-choice/set response codes
If the specified strategy name cannot be instantiated,
respond with 404 status code.

refs #3868

Change-Id: I8275923f149ec9c2ed82e485e933d16320bd3a03
2016-12-25 21:05:45 +00:00
Junxiao Shi 4cb74319f9 fw: delete deprecated Strategy::getName in favor of getInstanceName
This commit also renames strategy_choice::Entry::getStrategyName
to getStrategyInstanceName.

refs #3868

Change-Id: I40301e744fc236918d6be1c1262eba952198e22f
2016-12-25 20:48:47 +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 9ddf1b5c26 mgmt: NfdManagerBase::makeAuthorization uses CommandAuthenticator
This commit also eliminates Forwarder in Mgmt/TestFaceManager/CreateFace test suite
and uses FaceTable directly.

refs #2063

Change-Id: I596e8c2a12dad64ee75082f384955f30d574f53e
2016-08-22 03:58:55 +00:00
Junxiao Shi ff10da6575 table: attach unique_ptr<strategy_choice::Entry> onto NameTree
refs #3164

Change-Id: I5cce7e43dba77cdaaa07347ec7ffca13f242113c
2016-07-13 17:57:43 +00:00
Yanbiao Li df846e5904 core: allow ManagerBase be inherited by RibManager
Change-Id: Ie2613e32460fb109a9f9302a0cc4b4b3400ba9f4
refs: #2857
2016-04-12 14:10:55 -07:00
Yanbiao Li 6704a4a6e4 mgmt refactoring: StrategyChoiceManager
Change-Id: Ib6df3f627070a3b6d4777f8efbe30e601e4c1512
Refs: #2107
2015-09-07 19:00:41 -07:00
Yanbiao Li 36f3500d21 mgmt refactoring: Remove legacy code
Change-Id: Ib443ff3d45f9c49edee59d79c42a932017fc66ec
Refs: #2107
2015-09-07 18:58:34 -07:00
Steve DiBenedetto cd4ee5fcb4 mgmt,rib: check command length before accessing verb
refs: #2151

Change-Id: I0e67fd4b4df10d842648797ed42771af7c53a938
2014-12-09 00:12:43 -07:00
Junxiao Shi 838c4f1a2a table: simplify StrategyChoice with C++11 features
refs #2100

Change-Id: If0082c8561d706df86e92c14cb87762962ff200b
2014-11-09 19:16:07 -08:00
Steve DiBenedetto 77c8751576 mgmt: update strategy-choice/set to return a versioned strategy name
refs: #1972

Change-Id: I1616574a4643884dac050d240b771423ec2a0846
2014-10-08 11:53:53 -07:00
Vince Lehman 5144f829b9 mgmt+core: Moving SegmentPublisher to core/ and removing KeyChain from nfd::AppFace
This change ensures interface uniformity between nfd::AppFace and
ndn::Face and allow now templated version of SegmentPublisher to be used
with either.

Change-Id: I82e29528b13b37bd2ae27ef47db30e8c87c15a38
Refs: #1749
2014-07-23 16:01:27 -07:00
Steve DiBenedetto 3fff5614a5 mgmt: publish Strategy Choice dataset
refs: #1632

Change-Id: I4ed09d191433fd80071367e7b2ffcd2ac81c5c17
2014-06-07 22:35:39 -07:00
Alexander Afanasyev 9bcbc7c130 docs: Update of copyright and license statement in all .hpp and .cpp files
Change-Id: I4082db67f2390482615a780d91a513f09d57a9a4
Refs: #1266
2014-04-07 09:18:25 -07:00
Alexander Afanasyev bf9edeeaee logging: Reducing log level in several places
INFO level is suppose to be used for informational messages that are
useful for ordinary user, but in several places we used it as a DEBUG
output.

In CS the level is reduced even more, to TRACE.

Change-Id: I9058e25d95de79661099dd4624d802cc33420983
2014-04-01 22:24:50 -07:00
Steve DiBenedetto bf6a93da4e core: change logging from environment variable to configuration file-based
GlobalConfigurationFixture uses unit-tests.conf to determine default
and module specific logging levels. Logging will gracefully default to
INFO if unit-tests.conf is not found. See unit-tests.conf.sample for a
sample configuration file.

refs: #1375, #1267

Change-Id: Ib0c4eb4149748e6658f94ef1afa23ddd3072c0fa
2014-03-31 20:46:51 -06:00
Steve DiBenedetto 51d242a281 mgmt: refactor management modules to use ControlCommand
Change-Id: Icf5e10f2f2d0b95c85fd871e6484c3ed58ed6c46
2014-03-31 18:18:47 -07:00
Steve DiBenedetto 7564d97d13 mgmt: refactor management modules to conform to NFD Management Protocol
Refactor management protocol specific option types to ControlParameters
Add control parameter field enforcement
Add missing control response "success" message bodies
Update fib management protocol response codes and behavior
Merge local control header manager into face manager
Refactor references of nfd::LocalControlHeaderFeature enum to ndn::nfd::LocalControlFeature
Remove "control-header" privilege from default configuration

refs: #1397, #1399, #1400

Change-Id: Id042daf00b3cee1f1c7fa38d2e4a4ff6d95c15c6
2014-03-25 17:46:31 -06:00
Steve DiBenedetto 1d75f54e4b mgmt: refactor StrategyChoiceManager to use StrategyChoiceOptions (from FibManagementOptions)
refs: #1311

Change-Id: I104acede81d2ff00607b37ebccf741836aee3efb
2014-03-16 13:30:25 -07:00
Steve DiBenedetto 2c2b889ea2 mgmt, main: add support for authorized commands
refs: #1227

Change-Id: I907d1fa6e78775470c5376fcdfe898be4c311001
2014-03-11 17:08:31 -07:00
Steve DiBenedetto 5330e0dda1 mgmt, main: add strategy choice management and deprecate fib/set-strategy
refs: #1311

Change-Id: Icc88f201f3c13a5a25ec1bdadec35f93c76b2b94
2014-03-08 21:45:28 -07:00