Project

General

Profile

Actions

Task #1407

closed

nfdc add subcommand

Added by Alex Afanasyev about 10 years ago. Updated about 10 years ago.

Status:
Closed
Priority:
Normal
Category:
Tools
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
2.00 h

Description

Implement add subcommand as a composite of "create" and "add-nexthop".

Command syntax:

nfdc add <Name> <FaceUri> [<Cost>]

This is equivalent to:

FACEID=`nfdc create <FaceUri>`
nfdc add-nexthop <Name> $FACEID <Cost>

Related issues 1 (0 open1 closed)

Related to NFD - Task #1416: nfdc register/unregister subcommandsClosedSyed Amin03/27/2014

Actions
Actions #1

Updated by Junxiao Shi about 10 years ago

nfdc create should write the FaceId to stdout.

A bash script can capture this FaceId and provide create + add-nexthop feature.

The philosophy of UNIX is each command only do one thing. Composite operation should use a script.

And this composite operation isn't so useful because prefix registration should use NRD.

Actions #2

Updated by Junxiao Shi about 10 years ago

  • Subject changed from nfdc should have 'add' (and maybe 'remove' with aliases 'del' and 'delete') to nfdc add subcommand
  • Description updated (diff)
  • Assignee set to Hila Ben Abraham
  • Priority changed from Normal to Low
  • Estimated time set to 2.00 h
Actions #3

Updated by Alex Afanasyev about 10 years ago

  • Priority changed from Low to Normal

Hila, what is the progress on this task? People are started to use nfd and lack of helper 'add' command confuses them... :(

Actions #4

Updated by Hila Ben Abraham about 10 years ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 50
Actions #5

Updated by Hila Ben Abraham about 10 years ago

  • Status changed from In Progress to Code review
  • % Done changed from 50 to 100
Actions #6

Updated by Syed Amin about 10 years ago

Alex, not sure but I think this "add" updates FIB directly; shouldn't it go through NRD controller? And the command should also have a provision of specifying flags.

Actions #7

Updated by Alex Afanasyev about 10 years ago

This should be extended (we still could have direct modification of FIB, but with a secret nfdc option). Can you propose the extended format for add?

Actions #8

Updated by Alex Afanasyev about 10 years ago

  • Related to Task #1416: nfdc register/unregister subcommands added
Actions #9

Updated by Syed Amin about 10 years ago

I was waiting for this task to be finished, so that I can make registration related changes to nfdc. However, I've started from the under review commit now, as the behavior of add command needs to be modified in any case.

Actions #10

Updated by Junxiao Shi about 10 years ago

  • Status changed from Code review to Closed
Actions

Also available in: Atom PDF