[nox-dev] problem constructing a datapath id

2011-04-06 Thread karim torkmen
Hi, I am trying to use the method : self.bindings.get_names_by_ap(self.datapathid(),2,self.topology_call_back) Since it needs a datapathid i tried both the constructor datapathid() and the method create_datapathid_from_host(uint64_t id) given by the netinet lib, however

Re: [nox-dev] getting switch port number connected to a host

2011-04-06 Thread Kyriakos Zarifis
Hey, take a look at the API provided by pybindings_storage: void get_names_by_mac(const ethernetaddr mac, const Get_names_callback cb); and then void get_location_by_name(int64_t locationname, Name::Type name_type, const Get_locations_callback cb); would something like this do it for you?