Skip to content

Commit

Permalink
Fix assumed default NFD socket path and add argument for socket path
Browse files Browse the repository at this point in the history
Note that by default this commit will not work with NFD versions
earlier than 4c95771. In cases where this is required, an optional
argument is added to the Nfd class to change from the default.

Refs #5309

Change-Id: I70a43902dfbaf9a15c074fbac39b15d3db754f1d
  • Loading branch information
awlane committed Jan 12, 2024
1 parent 9665f5c commit dbbb356
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions minindn/apps/nfd.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,15 @@
class Nfd(Application):

def __init__(self, node, logLevel='NONE', csSize=65536,
csPolicy='lru', csUnsolicitedPolicy='drop-all'):
csPolicy='lru', csUnsolicitedPolicy='drop-all',
defaultSocketLocation='/run/nfd'):
Application.__init__(self, node)

self.logLevel = node.params['params'].get('nfd-log-level', logLevel)

self.confFile = '{}/nfd.conf'.format(self.homeDir)
self.logFile = 'nfd.log'
self.sockFile = '/run/{}.sock'.format(node.name)
self.sockFile = '{}/{}.sock'.format(defaultSocketLocation, node.name)
self.ndnFolder = '{}/.ndn'.format(self.homeDir)
self.clientConf = '{}/client.conf'.format(self.ndnFolder)

Expand Down

0 comments on commit dbbb356

Please sign in to comment.