It is a great analysis, but after enable switch as a firewall and make ping
to make arp request to catch hosts mac by rest topology.py
It return empty list also
On Jun 21, 2017 4:33 AM, "Fujimoto Satoshi" <satoshi.fujimo...@gmail.com>
wrote:
> Hi, Mahmoud
>
> First, rest_topology.py can find hosts only after the controller catch the
> packet from hosts.
> OTOH, by the default, rest_firewall.py drops all packets at the switch.
> So, rest_topology.py could not find any hosts, because it catch no packet
> from hosts.
>
> To find hosts, you need to:
> * enable the switch in order not to drop all packets
> https://osrg.github.io/ryu-book/en/html/rest_firewall.
> html#changing-in-the-initial-state
> * send packets from hosts in order to notify the host exists
>
> Thanks,
> Fujimoto
>
> On 2017年06月21日 10:37, Mahmoud Elzoghbi wrote:
>
> It responses with empty list
>
> On Jun 21, 2017 3:12 AM, "Fujimoto Satoshi" <satoshi.fujimo...@gmail.com>
> wrote:
>
>> Hi, Mahmoud
>>
>> Sorry, but I can't solve your problem without more information.
>> I want to know how you ran apps, it is needed to reproduce your problem.
>> So, could you tell me the command which you ran?
>>
>> And, what "doesn't work" means?
>> It replies with empty list, or responds with 404?
>> It is helpful for me to tell me the response from rest_topology.py.
>>
>> Thanks,
>> Fujimoto
>>
>> On 2017年06月21日 07:42, Mahmoud Elzoghbi wrote:
>>
>> Rest_topology.py module help me to get all hosts ' s mac address and ipv4
>> address by using rest request (http:/localhost:8080/v1.0/topology/hosts).
>>
>> My problem is when i run Rest_topology.py with simple_switch.py it works
>> fine and get all hosts' s mac address but when I run Rest_topology.py with
>> rest_firewall.py It doesn't work.
>>
>> On Jun 20, 2017 6:21 AM, "Fujimoto Satoshi" <satoshi.fujimo...@gmail.com>
>> wrote:
>>
>>> Hi, Mahmoud
>>>
>>> Sorry, I couldn't reproduce your problem...
>>>
>>> For further inspection, could you tell me the following? :
>>> * The command which you ran
>>> * Log messages of Ryu with '--verbose' option
>>> * Diff of rest_firewall.py, if you modified rest_firewall.py
>>>
>>> Thanks,
>>> Fujimoto
>>>
>>> On 2017年06月19日 10:15, Mahmoud Elzoghbi wrote:
>>>
>>> when i run rest_firewall.py with rest_topology,py , i use Rest request
>>> (http:://localhost:8080/v1.0/topology/hosts) to get all hosts that
>>> connect with the switch but these request doesn't work (no response from
>>> this request).
>>>
>>> do you have any idea for this problem..
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Check out the vibrant tech community on one of the world's most
>>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>>>
>>>
>>>
>>> _______________________________________________
>>> Ryu-devel mailing
>>> listRyu-devel@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/ryu-devel
>>>
>>>
>>>
>>
>> ------------------------------------------------------------------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>>
>>
>>
>> _______________________________________________
>> Ryu-devel mailing
>> listRyu-devel@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/ryu-devel
>>
>>
>>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>
>
>
> _______________________________________________
> Ryu-devel mailing
> listRyu-devel@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/ryu-devel
>
>
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel