Thanks Iwase,
Very helpful pointers...
Regards
Hadem
On Thu, Jun 23, 2016 at 1:53 PM, Iwase Yusuke <[email protected]>
wrote:
> Hi,
>
> On 2016年06月23日 15:41, Pynbiang Hadem wrote:
>
>> Thanks Iwase,
>> Do you think it is possible to bind an IP address to a specific switch
>> interface from a REST program?.
>>
>
> Yes, I think, but you need to extend API of rest_router.py.
> For example, by adding the port number to "Data" field the following API
> and add "in_port" match field to installed flow rule,
> you can specify which port(=interface) to assign IP address.
> http://osrg.github.io/ryu-book/en/html/rest_router.html#id1
>
> Thanks,
> Iwase
>
>
>> Thanks
>> Hadem
>>
>> On Thu, Jun 23, 2016 at 11:01 AM, Iwase Yusuke <[email protected]
>> <mailto:[email protected]>> wrote:
>>
>> Hi,
>>
>> On 2016年06月22日 17:43, Pynbiang Hadem wrote:
>>
>> But in this case, there are two IPs being assigned to the
>> switch:1((10.0.1.100 and 10.10.10.1) from the CURL command. How does the
>> switch differentiate between the two IPs unless they are being assigned to
>> a particular interface?.
>>
>>
>> The assigned IP addresses are installed as match fields on switch's
>> flow entries
>> and the switch differentiate IP addresses by flow entries.
>> So, IP addresses are independent from the switch's interfaces.
>>
>> Thanks,
>> Iwase
>>
>>
>> Thanks
>> Hadem
>>
>>
>> On Wed, Jun 22, 2016 at 1:42 PM, Iwase Yusuke <
>> [email protected] <mailto:[email protected]> <mailto:
>> [email protected] <mailto:[email protected]>>> wrote:
>>
>> Hi,
>>
>>
>> On 2016年06月21日 21:06, Pynbiang Hadem wrote:
>>
>> Dear All,
>>
>> I executed the following commands for rest_router.py:
>> curl -X POST -d '{"address":"10.0.1.100/24 <
>> http://10.0.1.100/24> <http://10.0.1.100/24> <http://10.0.1.100/24>"}'
>> http://localhost:8080/router/0000000000000001
>> curl -X POST -d '{"address": "10.10.10.1/24 <
>> http://10.10.10.1/24> <http://10.10.10.1/24> <http://10.10.10.1/24>"}'
>> http://localhost:8080/router/0000000000000001
>>
>> After which my AddressData object for *switch_id:1*
>> looks like:
>> # key, address_id, nw_addr, netmask, default_gw
>>
>> ---------------------------------------------------------------------------
>> 1)('10.0.1.0/24 <http://10.0.1.0/24> <http://10.0.1.0/24>
>> <http://10.0.1.0/24>', 1, '10.0.1.0', 24, '10.0.1.100')
>> 2)('10.10.10.0/24 <http://10.10.10.0/24> <
>> http://10.10.10.0/24> <http://10.10.10.0/24>', 2, '10.10.10.0', 24,
>> '10.10.10.1')
>>
>> How can i get the information of which IP is assigned to
>> which interface of *switch_id:1?*
>>
>>
>> AFAIK, rest_router.py does not bind IP address to the
>> specific interface.
>> The assigned IP address are shared by all interfaces of the
>> switch.
>>
>> Thanks,
>> Iwase
>>
>> *
>> *
>> Would really appreciate your help on this.
>>
>> Thanks
>> Hadem
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Attend Shape: An AT&T Tech Expo July 15-16. Meet us at
>> AT&T Park in San
>> Francisco, CA to explore cutting-edge tech and listen to
>> tech luminaries
>> present their vision of the future. This family event
>> has something for
>> everyone, including kids. Get more information and
>> register today.
>> http://sdm.link/attshape
>>
>>
>>
>> _______________________________________________
>> Ryu-devel mailing list
>> [email protected] <mailto:
>> [email protected]> <mailto:[email protected]
>> <mailto:[email protected]>>
>> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>>
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park
>> in San
>> Francisco, CA to explore cutting-edge tech and listen to tech
>> luminaries
>> present their vision of the future. This family event has
>> something for
>> everyone, including kids. Get more information and register today.
>> http://sdm.link/attshape
>>
>>
>>
>> _______________________________________________
>> Ryu-devel mailing list
>> [email protected] <mailto:
>> [email protected]>
>> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>>
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
>> Francisco, CA to explore cutting-edge tech and listen to tech luminaries
>> present their vision of the future. This family event has something for
>> everyone, including kids. Get more information and register today.
>> http://sdm.link/attshape
>>
>>
>>
>> _______________________________________________
>> Ryu-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>>
>>
------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel