On Sun, 10 Aug 2014 19:25:06 +0900
ISHIDA Wataru <[email protected]> wrote:
> implemented draft-ietf-idr-ix-bgp-route-server-05 partially.
>
> you can enable this function like below
>
>> speaker = BGPSpeaker(as_number=64512, router_id='10.10.0.1')
>> speaker.neighbor_add('10.0.0.1', 64514, is_route_server_client=True)
>> speaker.neighbor_add('10.10.0.2', 64513, is_route_server_client=True)
>
> add multiple rib function is a future work
>
> Signed-off-by: ISHIDA Wataru <[email protected]>
> ---
> ryu/lib/packet/bgp.py | 4 +--
> ryu/services/protocols/bgp/bgpspeaker.py | 7 ++++-
> ryu/services/protocols/bgp/peer.py | 29 +++++++++++++-----
> ryu/services/protocols/bgp/rtconf/neighbors.py | 38
> +++++++++++++++++++++++-
> 4 files changed, 67 insertions(+), 11 deletions(-)
Applied, thanks a lot!
> diff --git a/ryu/lib/packet/bgp.py b/ryu/lib/packet/bgp.py
> index 3cace68..ef23c6e 100644
> --- a/ryu/lib/packet/bgp.py
> +++ b/ryu/lib/packet/bgp.py
> @@ -932,7 +932,7 @@ class LabelledVPNIPAddrPrefix(_LabelledAddrPrefix,
> _VPNAddrPrefix,
>
> @property
> def label_list(self):
> - return self.addr[:-2]
> + return self.addr[-3]
>
> @property
> def formatted_nlri_str(self):
> @@ -955,7 +955,7 @@ class LabelledVPNIP6AddrPrefix(_LabelledAddrPrefix,
> _VPNAddrPrefix,
>
> @property
> def label_list(self):
> - return self.addr[:-2]
> + return self.addr[-3]
I dropped the above since I fixed in a different way.
------------------------------------------------------------------------------
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel