Sure, check out Switch::configure in src/nox/coreapps/switch/
Args can be specified as key value delimited by commas: For example:
pyreplicator=interval=43200,directory=/var/log/foo
on the command line will pass the key value pairs
(interval,43200;directory,/var/log/foo) to the pyreplicator c
A question related to this topic -
Is there a simple mechanism to send command line args to C++ modules?
Is there an example app I could look up to understand how to do it?
Thanks,
Nikhil
On Sun, Jan 11, 2009 at 11:47 PM, Martin Casado wrote:
> In your application configure method, do somethin
In your application configure method, do something like:
def configure(self, configuration):
for param in configuration['arguments']:
if param.find('=') != -1:
key, value = param[:param.find('=')],
param[param.find('=')+1:]
else:
Where/what files should I look at for examples of the component model?
I guess I don't absolutely need cmd-line options - could build my test
runner inside nox, rather than calling it a bunch of times.
Thanks,
Brandon
On Sun, Jan 11, 2009 at 10:40 PM, Martin Casado wrote:
> This is because we
This is because we embed python and don't use the internal python c
api to pass the the command line args to python. Our rational for
this was that apps should get their args through the component model
(in config) rather than have to parse to original command line.
However, passing the
Any idea why I get this error?
brand...@mvm-of1:~/nox/noxcore/build/src$ ./nox_core -i ptcp:6633
static_setup 1 2 3
NOX 0.4.0~core~beta (nox_core), compiled Jan 9 2009 15:09:46
Compiled with OpenFlow 0x97 (exp)
1|nox|ERR:Cannot change the state of 'static_setup' to INSTALLED:
'static_setup' r