Hi,
On 2016年10月21日 19:04, ホンパンニャー wrote:
> Hi,
>
> Sorry for the inconvenience ! Yeah what you have described is my problem.
>
> On my environment, I use Lagopus as OpenFlow Switch and my RYU version is
> 3.25. Following Ryu Book, everything works well except when I try to get
> the setting. I don't know why it is not shown, only the address setting is
> shown.
>
> Is it because I use Lagopus instead of OVS ?
Well... I think it's no...
rest_router seems to maintain the info for "address" and "route" in it own
and GET method for /router/{switch}/ returns messages by using these info
(without communicating with switches)
https://github.com/osrg/ryu/blob/master/ryu/app/rest_router.py#L657-L667
On my environment (Lagopus on Mininet), I could get the following.
(But, pings between mininet hosts did not work...)
$ curl http://localhost:8080/router/0000000000000001 | python -m json.tool
[
{
"internal_network": [
{
"address": [
{
"address": "172.16.30.30/24",
"address_id": 2
},
{
"address": "172.16.20.1/24",
"address_id": 1
}
],
"route": [
{
"destination": "0.0.0.0/0",
"gateway": "172.16.30.1",
"route_id": 1
}
]
}
],
"switch_id": "0000000000000001"
}
]
Thanks,
Iwase
>
> Thanks,
> Panha
>
> On Fri, Oct 21, 2016 at 4:52 PM, Iwase Yusuke <[email protected]>
> wrote:
>
>> Hi,
>>
>> Please keep Ryu-devel mailing list.
>>
>>
>> Please make your problem more clear...
>>
>> 1. You did the commands following Ryu-Book.
>> http://osrg.github.io/ryu-book/en/html/rest_router.html#exam
>> ple-of-the-operation-of-a-single-tenant
>>
>> 2. When you confirmed the settings of your switches,
>> "route" column was empty (or not shown).
>>
>> Right?
>>
>> On my environment, Ryu is the latest with GitHub and OVS v2.6.0,
>> I can get the settings as expected.
>>
>> $ curl http://localhost:8080/router/0000000000000001 | python -m json.tool
>> [
>> {
>> "internal_network": [
>> {
>> "address": [
>> {
>> "address": "172.16.20.1/24",
>> "address_id": 1
>> },
>> {
>> "address": "172.16.30.30/24",
>> "address_id": 2
>> }
>> ],
>> "route": [
>> {
>> "destination": "0.0.0.0/0",
>> "gateway": "172.16.30.1",
>> "route_id": 1
>> }
>> ]
>> }
>> ],
>> "switch_id": "0000000000000001"
>> }
>> ]
>>
>>
>> Thanks,
>> Iwase
>>
>>
>> On 2016年10月20日 19:08, ホンパンニャー wrote:
>>
>>> Hi Iwase,
>>>
>>> How are you doing ? I am now doing an experiment using rest_router.py. I
>>> am
>>> following everything from Ryu Document 1.0 and it works fine but i don't
>>> know why i cannot verify the route that i have added on the router.
>>>
>>> When i input this command curl
>>> http://*http://localhost:8080/router/0000000000000001
>>> <http://localhost:8080/router/0000000000000001>, *only the address info
>>> are
>>> showed. My question is how to view my route?
>>>
>>> I also attached the output of the command. Please have a look !
>>>
>>> Thanks,
>>> Panha
>>>
>>>
>
>
>
>
> ------------------------------------------------------------------------------
> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>
------------------------------------------------------------------------------
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive.
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel