[pox-dev] Pox CLI namespace

Murphy McCauley murphy.mccauley at gmail.com
Thu Oct 4 00:43:19 PDT 2012


Well, you can always "import" your module.
Additionally, the POX core object is available as "core", so if you put your component there, you can easily get it.
You can also add whatever variables you want by adding them to core.Interactive.variables.  Check the launch() function of arp_responder for an example.

-- Murphy

On Oct 4, 2012, at 12:39 AM, William Emmanuel S. Yu wrote:

> I ran pox with a CLI using "./pox.py py" and the appropriate module. When I am in the commandline problem I don't get the namespace of my module. I want to be able to run functions in this command line that I defined in my module.
> 
> For example, I created a ShowTable() in my module of.firewall. I want to be able to run that function in the CLI.
> 
> I am actually writing a "inefficient" firewall with functions used to modify my firewall permissions table.
> 
> Thank you!
> "Sent on the move."




More information about the pox-dev mailing list