Re: [pox-dev] switch disconnecting

2014-07-15 Thread farshad tajedin
this is my code:
/

for i in range (0,5):
 while(j5):
   self.request_FlowStatus( dpid[j])
   time.sleep(0.1)
   self.request_FlowStatus(a dpid[j])


On Sun, Jul 6, 2014 at 10:28 AM, Murphy McCauley murphy.mccau...@gmail.com
wrote:

 Can you send a snippet of code that causes the problem?  The POX and/or
 switch logs?  Etc.?  (The last item of the POX FAQ has a bunch of
 suggestions.)

 Also... how long does this loop run for?  In general, you don't want to
 have any event handler run for very long.  If it's taking many seconds,
 other switches may decide the connection is dead.

 -- Murphy

 On Jul 5, 2014, at 10:42 PM, farshad tajedin farshad.taje...@gmail.com
 wrote:

  hi
  i have a problem with switches in my topology, when i message to
 switches in a for loop i see some of switches disconnect and then connect
 again i dont know why?!!!
  please help me
 
  --
  Best Regards
 
  Farshad Tajedin




-- 
Best Regards

Farshad Tajedin


Re: [pox-dev] switch disconnecting

2014-07-15 Thread farshad tajedin
On Tue, Jul 15, 2014 at 11:30 AM, Murphy McCauley murphy.mccau...@gmail.com
 wrote:

 This appears to be an infinite loop or an incomplete snippet.

 On Jul 14, 2014, at 11:56 PM, farshad tajedin farshad.taje...@gmail.com
 wrote:

 this is my code:
 /

 for i in range (0,5):
  while(j5):
self.request_FlowStatus( dpid[j])
time.sleep(0.1)
self.request_FlowStatus(a dpid[j])


 On Sun, Jul 6, 2014 at 10:28 AM, Murphy McCauley 
 murphy.mccau...@gmail.com wrote:

 Can you send a snippet of code that causes the problem?  The POX and/or
 switch logs?  Etc.?  (The last item of the POX FAQ has a bunch of
 suggestions.)

 Also... how long does this loop run for?  In general, you don't want to
 have any event handler run for very long.  If it's taking many seconds,
 other switches may decide the connection is dead.

 -- Murphy

 On Jul 5, 2014, at 10:42 PM, farshad tajedin farshad.taje...@gmail.com
 wrote:

  hi
  i have a problem with switches in my topology, when i message to
 switches in a for loop i see some of switches disconnect and then connect
 again i dont know why?!!!
  please help me
 
  --
  Best Regards
 
  Farshad Tajedin




 --
 Best Regards

 Farshad Tajedin



omg
sorry i forgot to write while counter:

for i in range (0,5):
 while(j5):
   self.request_FlowStatus(dpid[j])
   time.sleep(0.1)
   self.request_FlowStatus(dpid[j])
   j+=1

-- 
Best Regards

Farshad Tajedin


Re: [pox-dev] switch disconnecting

2014-07-05 Thread Murphy McCauley
Can you send a snippet of code that causes the problem?  The POX and/or switch 
logs?  Etc.?  (The last item of the POX FAQ has a bunch of suggestions.)

Also... how long does this loop run for?  In general, you don't want to have 
any event handler run for very long.  If it's taking many seconds, other 
switches may decide the connection is dead.

-- Murphy

On Jul 5, 2014, at 10:42 PM, farshad tajedin farshad.taje...@gmail.com wrote:

 hi
 i have a problem with switches in my topology, when i message to switches in 
 a for loop i see some of switches disconnect and then connect again i dont 
 know why?!!! 
 please help me
 
 -- 
 Best Regards
 
 Farshad Tajedin