[nox-dev] help: link_type

2011-12-01 Thread ztom

Hi~ alls,
I need to get all link_types of topo's jsonmsg, but i just find two of them 
("all" & "sw2sw"). Is there some docs about it? I can't get any hint from 
source code now ... Waiting for your help.

---
best regards  
  ___
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev


[nox-dev] FW: Help: LAVI and NOX's nox-gui.py

2011-12-02 Thread ztom


Hi~ alls,
I used LAVI and nox-gui.py(another front-end as ENVI), and 
tested some cases with NOX and openvswitch, one switch links to one 
host,  my cmd is "$ ./nox_core -v -i ptcp:6633 monitoring pyswitch lavi 
", but there's no host icon and hs2sw link in nox-gui's view, just 
swicth icon.  Could someone help me...

---
thanks a lot
  ___
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev


Re: [nox-dev] FW: Help: LAVI and NOX's nox-gui.py

2011-12-04 Thread ztom

Hi~ kyr,
 
Thanks a lot, yes, as your said, we need to add a component named 
"trackhost_pktin".
 
---
regards
tom
 



Date: Fri, 2 Dec 2011 11:29:27 -0800
Subject: Re: [nox-dev] FW: Help: LAVI and NOX's nox-gui.py
From: kyr.zari...@gmail.com
To: switch@hotmail.com
CC: nox-dev@noxrepo.org

Oh, also, there is one component that is responsible for tracking host traffic, 
and that's what feeds the host information to LAVI and eventually to the GUI
I can't remember if it is there as a dependency, so you might need to run that 
manually. I think the name is "trackhost_pktin" (can't check right now 
unfortunately). So maybe try adding that too after "monitoring" and "pyswitch" ?


On Fri, Dec 2, 2011 at 11:24 AM, Kyriakos Zarifis  wrote:

Hi,


the hosts should appear when they talk to the network. Did you try generating 
some traffic? A simple ping should do it


(btw, I think "lavi" is not required as an argument as IIRC it's a dependency 
of monitoring anyway)




On Fri, Dec 2, 2011 at 1:21 AM, ztom  wrote:








Hi~ alls,
I used LAVI and nox-gui.py(another front-end as ENVI), and tested some cases 
with NOX and openvswitch, one switch links to one host,  my cmd is "$ 
./nox_core -v -i ptcp:6633 monitoring pyswitch lavi ", but there's no host icon 
and hs2sw link in nox-gui's view, just swicth icon.  Could someone help me...

---
thanks a lot

___
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev



  ___
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev


[nox-dev] Component: hosttracker

2011-12-05 Thread ztom

Hi~ alls,

I found a component named "hosttracker" with source code, and it can handle 
adding or removing of hosts.
But when I run it with nox_core($ ./nox_core -v -i ptcp:6633 monitoring 
hosttracker), the front-end still can't receive the jsonmsg
as "{'node_type': 'host', 'command':'add/remove'}". What should i do???

---
thanks
tom
  ___
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev


Re: [nox-dev] Component: hosttracker

2011-12-05 Thread ztom

> when you say the front-end, do you mean noxconsole? the GUI?
GUI, nox-gui.py

> (you 
can take a look at the GUI to see how the message exchange happens and 
what they messages look like.. the code should be in topology.py)
I know the process of msg exchange, 
back-end(jsonmsg)->view_interface(signal/slot)->GUI. But when I remove the 
host, nox(with LAVI component) will send a jsonmsg including "node_type: host, 
command: delete". Actually, it doesn't, so I'm confused. 

Date: Mon, 5 Dec 2011 22:14:47 -0800
Subject: Re: [nox-dev] Component: hosttracker
From: kyr.zari...@gmail.com
To: switch@hotmail.com
CC: nox-dev@noxrepo.org

when you say the front-end, do you mean noxconsole? the GUI?(you can take a 
look at the GUI to see how the message exchange happens and what they messages 
look like.. the code should be in topology.py)


On Mon, Dec 5, 2011 at 9:28 PM, ztom  wrote:






Hi~ alls,

I found a component named "hosttracker" with source code, and it can handle 
adding or removing of hosts.
But when I run it with nox_core($ ./nox_core -v -i ptcp:6633 monitoring 
hosttracker), the front-end still can't receive the jsonmsg

as "{'node_type': 'host', 'command':'add/remove'}". What should i do???

---
thanks
tom
  

___

nox-dev mailing list

nox-dev@noxrepo.org

http://noxrepo.org/mailman/listinfo/nox-dev



  ___
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev


Re: [nox-dev] Component: hosttracker

2011-12-06 Thread ztom

>(for example - what do *you* mean when you say "when I remove the host? 
:). In a physical environment, this can mean turning the machine off, or
 unplugging its network cable, both of which events aren't easily 
>detectable from the network's perspective)

"remove" means unplugging its network cable.
 
Frist, pls see the file "src/nox/netapps/lavi/lavi_hosts.cc", and it wraps the 
jsonmsg with "add/delete", so I think that it should be sent a msg when the 
host's removed. But I just get the msg as "{type: lavi, node type: host, node 
id: XXX, command: add}" when the host's pinging the switch, and after  
unplugging the host's network cable, I can't find a msg including "command: 
delete". Is it my misunderstanding, or component's imperfection?


Date: Mon, 5 Dec 2011 23:25:47 -0800
Subject: Re: [nox-dev] Component: hosttracker
From: kyr.zari...@gmail.com
To: switch@hotmail.com
CC: nox-dev@noxrepo.org

Ah, ok. So I'm not sure exactly how the logic that detects if a host has been 
removed is implemented, as I didn't write this component. So I don't know when 
the "delete" message is sent for hosts.
I could take a look and get back to you. The logic should be somewhere inside 
LAVI/hosttracker, and it might be something along the lines of "if you haven't 
heard any traffic from host, remove it, or 'if you hear traffic from host X on 
port B, but X is registered on port A, remove it from A".

(for example - what do *you* mean when you say "when I remove the host? :). In 
a physical environment, this can mean turning the machine off, or unplugging 
its network cable, both of which events aren't easily detectable from the 
network's perspective)


On Mon, Dec 5, 2011 at 10:25 PM, ztom  wrote:






> when you say the front-end, do you mean noxconsole? the GUI?
GUI, nox-gui.py

> (you 
can take a look at the GUI to see how the message exchange happens and 
what they messages look like.. the code should be in topology.py)
I know the process of msg exchange, 
back-end(jsonmsg)->view_interface(signal/slot)->GUI. But when I remove the 
host, nox(with LAVI component) will send a jsonmsg including "node_type: host, 
command: delete". Actually, it doesn't, so I'm confused. 


Date: Mon, 5 Dec 2011 22:14:47 -0800
Subject: Re: [nox-dev] Component: hosttracker
From: kyr.zari...@gmail.com

To: switch@hotmail.com
CC: nox-dev@noxrepo.org

when you say the front-end, do you mean noxconsole? the GUI?
(you can take a look at the GUI to see how the message exchange happens and 
what they messages look like.. the code should be in topology.py)


On Mon, Dec 5, 2011 at 9:28 PM, ztom  wrote:







Hi~ alls,

I found a component named "hosttracker" with source code, and it can handle 
adding or removing of hosts.
But when I run it with nox_core($ ./nox_core -v -i ptcp:6633 monitoring 
hosttracker), the front-end still can't receive the jsonmsg


as "{'node_type': 'host', 'command':'add/remove'}". What should i do???

---
thanks
tom
  

___

nox-dev mailing list

nox-dev@noxrepo.org

http://noxrepo.org/mailman/listinfo/nox-dev



  

  ___
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev