As far as I know NOX does not have a static flow pusher like Floodlight does. I believe you should run the learning switch in NOX and try to push traffic around your network, that'll make NOX react to packetins and install flows.
This question is mostly a NOX question, you'll probably get a better answer on the nox-dev mailing list. Cheers. -- Ali On Dec 19, 2012, at 5:01 PM, Humphrey Lee <iramani...@gmail.com> wrote: > Thank you for your quick reply, Ali. > > I did addFlowSpace as you said below. However, I don't know how to add flow > entry for Nox, but I know how to do it for Floodlight controller using > Static Flow Pusher "curl" command. > > I created two slices using fvctl addFlowSpace command, but I don't know how > to add flows for each slice? > > Cheers, > Humphrey > > Ali Al-Shabibi 於 2012年12月19日星期三寫道: > Hi Humphrey, > > It's hard for me tell you what kind of rule you want to add without knowing > what it is you want to achieve. But, assuming you only want one slice since > you only seem to have one controller, you could add this rule. > > fvctl addFlowSpace <your_switches_dpid> 10 any Slice:<slicename>=4 > > you could also replace <your_switches_dpid> with 'any' as well. This command > will give your slice all the flowspace for the dpid specified. Please have a > look at the fvctl manpage for more info. > > > Cheers. > > -- > Ali > > On Dec 19, 2012, at 4:24 PM, Humphrey Lee <iramani...@gmail.com> wrote: > > > Hi Ali, > > > > I want to add flow entry to my switch for a slice running NOX controller, > > and FlowVisor is running too. Can you send me some examples of how to add > > flow? Both FlowVisor and NOX are running on the same host(I.e. same IP), > > but different port, and the host is running Ubuntu Server LTS 12.04, and my > > switch is NetGear GSM7328 with Indigo OF flash loaded. > > > > Cheers, > > Humphrey > > > > Ali Al-Shabibi 於 2012年12月11日星期二寫道: > > You are loading the config file while flowvisor is running. Unfortunately, > > the internal database does not like this. Luckily, you do not need to do > > this. Once you have run sudo /etc/init.d/flowvisor start, flowvisor is > > running and ready for use. If you want to load a specific config file then > > run fvconfig load config.json when fv is _not_ running, but this is usually > > unnecessary for a fresh fv install. > > > > The error message is relatively cryptic, could you submit a bug report on > > the issue tracker? > > > > -- > > Ali Al-Shabibi (sent from handheld) > > > > On 11 déc. 2012, at 06:53, Humphrey Lee <iramani...@gmail.com> wrote: > > > >> Ali, > >> > >> I thought so. I checked the default config.json file, the port is 6633. > >> However, when I ran FV, I got a lot of Exceptions as shown below. Any idea? > >> > >> Thanks, > >> Humphrey > >> > >> hon@ubuntu:/usr/local/share/db/flowvisor/FlowVisorDB$ sudo > >> /etc/init.d/flowvisor start > >> [sudo] password for hon: > >> Starting flowvisor with the configuration stored in DB > >> If DB unpopulated, laod config using 'fvconfig load config.json' > >> hon@ubuntu:/usr/local/share/db/flowvisor/FlowVisorDB$ sudo fvconfig load > >> /etc/flowvisor/config.json > >> java.sql.SQLException: Failed to start database > >> '/usr/local/share/db/flowvisor/FlowVisorDB' with class loader > >> sun.misc.Launcher$AppClassLoader@16f0472, see the next exception for > >> details. > >> at > >> org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown > >> Source) > >> at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown > >> Source) > >> at org.apache.derby.impl.jdbc.Util.seeNextException(Unknown Source) > >> at org.apache.derby.impl.jdbc.EmbedConnection.bootDatabase(Unknown > >> Source) > >> at org.apache.derby.impl.jdbc.EmbedConnection.<init>(Unknown > >> Source) > >> at org.apache.derby.impl.jdbc.EmbedConnection30.<init>(Unknown > >> Source) > >> at org.apache.derby.impl.jdbc.EmbedConnection40.<init>(Unknown > >> Source) > >> at org.apache.derby.jdbc.Driver40.getNewEmbedConnection(Unknown > >> Source) > >> at org.apache.derby.jdbc.InternalDriver.connect(Unknown Source) > >> at org.apache.derby.jdbc.AutoloadedDriver.connect(Unknown Source) > >> at java.sql.DriverManager.getConnection(DriverManager.java:620) > >> at java.sql.DriverManager.getConnection(DriverManager.java:200) > >> at > >> org.apache.commons.dbcp.DriverManagerConnectionFactory.createConnection(DriverManagerConnectionFactory.java:75) > >> at > >> org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582) > >> at > >> org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181) > >> at > >> org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106) > >> at > >> org.flowvisor.config.ConfDBHandler.getConnection(ConfDBHandler.java:70) > >> at > >> org.flowvisor.config.FlowvisorImpl.deleteAll(FlowvisorImpl.java:771) > >> at > >> org.flowvisor.config.FlowvisorImpl.fromJson(FlowvisorImpl.java:761) > >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > >> at sun. _______________________________________________ openflow-discuss mailing list openflow-discuss@lists.stanford.edu https://mailman.stanford.edu/mailman/listinfo/openflow-discuss