[nox-dev] correspondence mac address port number

2011-03-29 Thread karim torkmen
Hi, I want to set-up statically a path using openflow but the install_datapath_flow() method does not accept mac address as parameter, so I need to know the correspondence between mac addresses and port numbers in a switch so that I can choose the out_port that is correspondent to a mac

Re: [nox-dev] correspondence mac address port number

2011-03-29 Thread karim torkmen
On 03/29/2011 12:29 PM, Kyriakos Zarifis wrote: Hi Karim, the second parameter of install_datapath_flow() is a python dictionary that describes the flow for which you are setting up an entry. This is where you specify the MAC address(es). Create a dictionary, populate as you want (the keys

Re: [nox-dev] correspondence mac address port number

2011-03-29 Thread Kyriakos Zarifis
Oh I see - the bindings_storage module would hold that information from nox.netapps.bindings_storage.pybindings_storage import pybindings_storage self.bindings = self.resolve(pybindings_storage) and then you can use the module's API as defined in netapps/bindings_storage for example