[nox-dev] some explanations about the pyswitch code

2011-03-28 Thread karim torkmen
Hi all, I am starting with openFlow and nox. As starting example I am trying to understand the pyswitch code. However, there are some lines of code that are not very clear to me. Those lines are : 1- if ord(srcaddr[0]) 1: what is really meant by this condition ? 2- dst[0] != inport: why

[nox-dev] some confusions about the inport parameter

2011-03-28 Thread karim torkmen
Hi, I am a little bit confused about the inport parameter in : * send_openflow(dpid, bufid, buf, openflow.OFPP_FLOOD, inport) And in: * install_datapath_flow(dpid, flow, 5, 0, actions, bufid, openflow.OFP_DEFAULT_PRIORITY, inport, packet) Do they design the port of communication between the

Re: [nox-dev] some confusions about the inport parameter

2011-03-28 Thread karim torkmen
Thanks Kyriakos :) In fact, my confusion came from the fact that the inport is got from registering to the packet_in event. So when you register you get the inport, however this inport is used for two different cases. So, in the case where the inport is got from registering to the packet_in

[nox-dev] packet_in_event

2011-03-28 Thread karim torkmen
Hi all, I have some problem to understand some conditions in the nox example 'pyswitch'. *My first question is that when a packet_in_event is received by the controller, the 'inport' parameter designs the port of controller that received the packet from the switch or the port of the switch

[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
this in the definition of install_datapath_flow() On Tue, Mar 29, 2011 at 3:03 AM, karim torkmen karim.torkm...@gmail.com mailto:karim.torkm...@gmail.com wrote: Hi, I want to set-up statically a path using openflow but the install_datapath_flow() method does not accept mac address

[nox-dev] 00005|nox|ERR:Application

2011-03-31 Thread karim torkmen
Hi, I developed a component when I try to run it, I get the following error message : 1|nox|INFO:Starting nox_core (/nox/build/src/.libs/lt-nox_core) 2|nox|DBG:Application installation report: 3|nox|DBG:built-in DSO deployer: Current state:

Re: [nox-dev] 00005|nox|ERR:Application

2011-04-01 Thread karim torkmen
configure.ac http://configure.ac and Makefile.am? On Thu, Mar 31, 2011 at 7:42 AM, karim torkmen karim.torkm...@gmail.com mailto:karim.torkm...@gmail.com wrote: Hi, I developed a component when I try to run it, I get the following error message

Re: [nox-dev] 00005|nox|ERR:Application

2011-04-01 Thread karim torkmen
...@gmail.com wrote: Hi Karim, did you rerun ../configure and make after you edited configure.ac and Makefile.am? On Thu, Mar 31, 2011 at 7:42 AM, karim torkmen karim.torkm...@gmail.com wrote: Hi, I developed a component when I try to run it, I get the following error message

[nox-dev] problem running a new component

2011-04-04 Thread karim torkmen
Hi, I am developing a new component called try_topology that uses the bindings_storage component. When I run it with this command : - ./nox_core -v -i ptcp:6633 pybindings_storage try_topology It returns no errors. However, by calling just the try_topolgy component, I get the following

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

2011-04-05 Thread karim torkmen
Hi, I am trying to retrieve the topology of an openflow network through pybindings_storage. Untill now, I succeed to get the different connections between the switches i.e the tuple (src_dpid,src_port,dst_dpid,dst_port) through the method get_all_links() which seems to return just teh links

[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-07 Thread karim torkmen
On 04/07/2011 05:46 AM, Kyriakos Zarifis wrote: void get_location_by_name(int64_t locationname, Name::Type name_type, const Get_locations_callback cb); Hi Kyriakos, Thanks for your reply :) I tried them like this : get_names_by_mac(create_eaddr('3e:b5:78:95:38:09'), cb)

[nox-dev] problem using authenticator

2011-04-07 Thread karim torkmen
Hi, Is there any example that is using the authenticator component, I want to get access to the Auth_event and the other functionalities of it. I am having some troubles to install it. In fact, I did the following: from nox.netapps.authenticator.pyauth import pyauthenticator from

[nox-dev] error: no C++ to Python event converter

2011-04-26 Thread karim torkmen
Hi all, I am trying to use the authenticator component, however it seems to be not fully supported by python. In fact, I get the following error: Host_auth_event has no C++ to Python event converter Is there any method to have this event converted to python. Regards, Karim

[nox-dev] pybindings_storage

2011-04-26 Thread karim torkmen
Hi, When executing the method 'get_names_by_mac()' of py_bindings I get the following output, which seems a little bit strange : [(u'authenticated', 2L, -1L), (u'authenticated', 1L, -1L)] Can you please telle what does this mean ? Thanks for your help. Regards, Karim

Re: [nox-dev] error: no C++ to Python event converter

2011-04-28 Thread karim torkmen
On 04/26/2011 07:46 PM, Murphy McCauley wrote: Actually, I think this event should work and that there is an event converter for it. Can you share a code snippet that exhibits the problem? And tell us which branch you're using? -- Murphy On Apr 26, 2011, at 7:35 AM, karim torkmen wrote

Re: [nox-dev] error: no C++ to Python event converter

2011-04-28 Thread karim torkmen
On 04/28/2011 07:26 PM, Murphy McCauley wrote: ave you noticed any weird errors from SWIG during the build or anything? Did you add pyauthenticator as a dependency for your component (though I don't think this would cause exactly that error)? Hi Murphy, In fact, it was a dependency problem :)

[nox-dev] some explanations about pyrouting memebers

2011-05-02 Thread karim torkmen
Hi, I need to know what does the following functions do, unfortuanately no documnetation is provided for them: - setup_flow(self, flow, dp, outport, bid, buf, timeout,actions, check_nat) - send_packet(self, dp, inport, outport, bid, buf, actions, check_nat, flow) Can

[nox-dev] strange ethernet type returned by authenticator

2011-05-02 Thread karim torkmen
Hi, I am using the authenticator module. I registered to the flow in event : self.register_handler(Flow_in_event.static_get_name(),self.flow_in_call_back) When I try to get the EtherType of a flow through calling this parameter: type = event.flow.dl_type I get EtherType equal to 25480 which is

[nox-dev] strange switches behaviour

2011-05-03 Thread karim torkmen
Hi all, When trying my controller I noticed some strange behaviour. In fact, my aim is to set a path from one host to another. I started doing this by setting it statically. Than I enhanced it using the routing module to calculate the optimal path. However, when the enhanced controller is not

Re: [nox-dev] strange switches behaviour

2011-05-03 Thread karim torkmen
it pretty much *is* another controller that acts like an L2 learning switch. When it reconnects to its controller, it will stop doing this again. -- Murphy On Tuesday, May 03, 2011 10:42:46 AM karim torkmen wrote: Hi all, When trying my controller I noticed some strange behaviour. In fact, my aim

[nox-dev] matching fields

2011-05-05 Thread karim torkmen
Hi, Is there any function in nox that allows to select the fields to match in a flow table (e.g. order the switch to ignore the destination mac address). Thanks a lot. Karim ___ nox-dev mailing list nox-dev@noxrepo.org

Re: [nox-dev] matching fields

2011-05-06 Thread karim torkmen
you are trying to do or post some code. -- Murphy On Thursday, May 05, 2011 08:32:42 AM karim torkmen wrote: Hi, Is there any function in nox that allows to select the fields to match in a flow table (e.g. order the switch to ignore the destination mac address). Thanks a lot. Karim

[nox-dev] availability of host tracker for python

2011-05-12 Thread karim torkmen
Hi all, I want to use host tracker in python, but it seems that it is available just for C++. can anyone please forward to me the necessary files if available, to wrap this component and make it available to python. Thanks, Karim ___ nox-dev mailing

[nox-dev] strange send_openflow_packet behaviour

2011-05-20 Thread karim torkmen
Hi, i am trying to send a packet through the send_openflow_packet method, to send the packet i do some processing on dict saved as a global variable on the form dict {key:[v1,v2],v3,v4}. When i send the packet the first time everything goes well, but after the second time, the dict form

[nox-dev] problem with get_switch_links

2011-06-09 Thread karim torkmen
Hi all, I am having some problems by using the get_switch_links method. This method requires a callback method, however for my program I want that this method returns a link list. I tried using global variables, but it seems that the link list that I get is not updated, with the last link list

[nox-dev] check if a link is in route

2011-07-15 Thread karim torkmen
Hi all, I want to know if there is any method that allows to know if a given link is in a given route and what do the following methods of the routing module bool is_on_path_location(const RouteId id, uint16_t src_port, uint16_t dst_port) and void clean_route(const RoutePtr, RoutePtr, bool)

[nox-dev] a possible bug report

2011-08-16 Thread karim torkmen
Hi, I am developing an application to reroute traffic upon a link failure, using the routing module to calculate the shortest path. When a link failure occurs, the application should get a new path using the routing module. However, when treating the link failure inside a callback of the

Re: [nox-dev] Wrong Route update after link down event

2011-08-24 Thread karim torkmen
into it. Thanks for the report. Please let us know if you figure anything out! -- Murphy On Aug 15, 2011, at 7:48 AM, karim torkmen wrote: Hi all, I am writing a module for link protection after a link failure. The problem is that when I ask for a new route through the get_route() method, after