Project

General

Profile

Actions

Task #3491

closed

NFDC wrapper class

Added by Vince Lehman almost 9 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
03/01/2016
Due date:
% Done:

100%

Estimated time:

Description

This task should wrap NFDC's functionality in a class to make controlling NFD easier for the user.

The setStrategy method in the Nfd class should be moved to this new Nfdc class.

The add-nexthop and remove-nexthop commands should not be implemented as they are meant for developer debugging and are intended for RIB Manager use.

Class API:

class Nfdc:
    @staticmethod
    def registerRoute(nfdInstance, namePrefix, remoteNode, inheritFlag=True, captureFlag=False, cost=0, expirationInSeconds=None, origin=255)

    @staticmethod
    def unregisterRoute(nfdInstance, namePrefix, remoteNode, origin=255)

    @staticmethod
    def createFace(nfdInstance, remoteNode, protocol="udp", isPermanent=False)

    @staticmethod
    def destroyFace(nfdInstance, remoteNode, protocol="udp")

    @staticmethod
    def setStrategy(nfdInstance, namePrefix, strategy)

    @staticmethod
    def unsetStrategy(nfdInstance, namePrefix)

Related issues 1 (1 open0 closed)

Related to mini-ndn - Task #4613: Move from scripting NFDC to directly interfacing with NFD ManagementNew05/18/2018

Actions
Actions #1

Updated by Vince Lehman almost 9 years ago

  • Description updated (diff)
Actions #2

Updated by Ashlesh Gawande about 7 years ago

  • Target version set to v0.6.0
Actions #3

Updated by Alexander Lane over 6 years ago

  • Status changed from New to Code review
  • Assignee set to Alexander Lane
Actions #4

Updated by Junxiao Shi over 6 years ago

You shouldn't try to script nfdc because nfdc's input and output formats are not guaranteed to be stable.
Instead, interface with NFD Management protocol directly through PyNDN.

Actions #5

Updated by Alexander Lane over 6 years ago

  • Related to Task #4613: Move from scripting NFDC to directly interfacing with NFD Management added
Actions #6

Updated by Ashlesh Gawande over 6 years ago

  • Status changed from Code review to Closed
  • Target version changed from v0.6.0 to v0.5.0
  • % Done changed from 0 to 100
Actions #7

Updated by Ashlesh Gawande over 6 years ago

  • Status changed from Closed to New
  • % Done changed from 100 to 50

Saurab reports bugs, need to fix.

Actions #8

Updated by Ashlesh Gawande over 6 years ago

  • Status changed from New to In Progress
  • Assignee changed from Alexander Lane to Saurab Dulal
Actions #9

Updated by Ashlesh Gawande almost 6 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 50 to 100
Actions

Also available in: Atom PDF