Not core.py. That file is more like a library, and it's not meant to be
changed users unless you want to add some functionality that is not
supported by NOX by default.

pyswitch is an example component, that makes all connected switches act as
learning switches. You could change that file to add your firewall
functionality there, if that's what you want to do. Better yet, you could
create a new component (which you can base on pyswitch if you want) and
name that new component myfirewall.py or something, and add that
functionality there, and run NOX with your new component.

Getting familiar with the code in pyswitch is very helpful, and you can
find some information on creating new components on the wiki here:
https://github.com/noxrepo/nox-classic/wiki

On Sat, Apr 28, 2012 at 6:50 PM, rebecca <[email protected]> wrote:

> Thanks for your quick reply. My problem now is I do not know which part of
> NOX
> that function to install the flow entry. Where should I specify the IP
> address
> that i want to block? Can I do it in the pyswitch.py or the core.py?
>
> Thanks for your time.
>
>

Reply via email to