Task #3491
Updated by Vince Lehman over 8 years ago
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: ``` Python 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) ```