[BGPCEP-469] BGP EVPN route received from Bagpipe Created: 31/May/16  Updated: 03/Mar/19  Resolved: 02/Jun/16

Status: Resolved
Project: bgpcep
Component/s: BGP
Affects Version/s: Bugzilla Migration
Fix Version/s: Bugzilla Migration

Type: Bug
Reporter: Iveta Halanova Assignee: Claudio David Gasparini
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Attachments: Text File karaf_bagpipe.log    
External issue ID: 5983
Priority: High

 Description   

with same configuration as in https://bugs.opendaylight.org/show_bug.cgi?id=5981

sending route from bagpipe to ODL

I am not sure if packet sent from bagpipe is correct but I tried these commands:

sudo bagpipe-rest-attach --attach --port tap42 --mac 00:11:22:33:44:55 --ip 11.11.11.1 --gateway-ip 11.11.11.254 --network-type evpn --rt 64512:77

sudo bagpipe-rest-attach --attach --network-type=evpn --vpn-instance-id=bagpipe-test-evpn --port=79 --rt=65000:79 --gateway-ip=127.0.0.1 --ip=12.11.11.1 --mac=0e:48:81:09:df:bf

sudo bagpipe-rest-attach --attach --network-type=evpn --vpn-instance-id=bagpipe-test-evpn --port=179 --rt=65000:179 --gateway-ip=127.0.0.1 --ip=12.11.11.1 --mac=0e:48:81:09:df:bf

ODL throws exception: ERROR | oupCloseable-3-1 | BGPDocumentedException | 259 - org.opendaylight.bgpcep.bgp-parser-api - 0.6.0.SNAPSHOT | Error = MALFORMED_ATTR_LIST
org.opendaylight.protocol.bgp.parser.BGPDocumentedException: Could not parse BGP attributes.



 Comments   
Comment by Iveta Halanova [ 31/May/16 ]

Attachment karaf_bagpipe.log has been added with description: ODL receives EVPN from bagpipe

Comment by Iveta Halanova [ 31/May/16 ]

if it works for you, please write me what's wrong on my configurations

Comment by Claudio David Gasparini [ 01/Jun/16 ]

https://git.opendaylight.org/gerrit/#/c/39693/

Comment by Iveta Halanova [ 02/Jun/16 ]

sent this through bagpipe:
sudo bagpipe-rest-attach --attach --network-type=evpn --vpn-instance-id=bagpipe-test-evpn --port=179 --rt=65000:179 --gateway-ip=127.0.0.1 --ip=12.11.11.1 --mac=0e:48:81:09:df:bf

we expected:
<mac-ip-adv-route>...<mac-address>0e:48:81:09:df:bf</mac-address>...
</mac-ip-adv-route>

But this was in RIB:

<evpn-route>
<route-key>AxEAAX8AAAMAAQAAAAAgfwAAAw==</route-key>
<route-distinguisher>127.0.0.3:1</route-distinguisher>
<attributes>
<origin><value>igp</value></origin>
<ipv4-next-hop><global>127.0.0.3</global></ipv4-next-hop>
<local-pref><pref>100</pref></local-pref>

<unrecognized-attributes><type>22</type>
<value>AAYACWB/AAAD</value>
<partial>false</partial>
<transitive>true</transitive>
</unrecognized-attributes>

<as-path/>
<extended-communities>
<route-target-extended-community>
<global-administrator>65000</global-administrator>
<local-administrator>AAAATw==</local-administrator>
</route-target-extended-community>
<transitive>true</transitive></extended-communities>

<extended-communities>
<encapsulation-extended-community><tunnel-type>vxlan</tunnel-type></encapsulation-extended-community>
<transitive>true</transitive>
</extended-communities>

</attributes>

<inc-multi-ethernet-tag-res>
<ethernet-tag-id><vlan-id>0</vlan-id></ethernet-tag-id>
<orig-route-ip>127.0.0.3</orig-route-ip>
</inc-multi-ethernet-tag-res>
</evpn-route>

Comment by Claudio David Gasparini [ 02/Jun/16 ]

tested against distribution-karaf-0.5.0-20160602.090153-2609.zip

Seen in Rib correctly, the 2 expected routes.

<evpn-routes xmlns="urn:opendaylight:params:xml:ns:yang:bgp-evpn">
<evpn-route>
<route-key>AxEAAX8AAAMAAQAAAAAgfwAAAw==</route-key>
<route-distinguisher>127.0.0.3:1</route-distinguisher>
<attributes>
<origin>
<value>igp</value>
</origin>
<ipv4-next-hop>
<global>127.0.0.3</global>
</ipv4-next-hop>
<local-pref>
<pref>100</pref>
</local-pref>
<unrecognized-attributes>
<type>22</type>
<value>AAYAC2B/AAAD</value>
<partial>false</partial>
<transitive>true</transitive>
</unrecognized-attributes>
<as-path/>
<extended-communities>
<route-target-extended-community>
<global-administrator>65000</global-administrator>
<local-administrator>AAAAsw==</local-administrator>
</route-target-extended-community>
<transitive>true</transitive>
</extended-communities>
<extended-communities>
<encapsulation-extended-community>
<tunnel-type>vxlan</tunnel-type>
</encapsulation-extended-community>
<transitive>true</transitive>
</extended-communities>
</attributes>
<inc-multi-ethernet-tag-res>
<ethernet-tag-id>
<vlan-id>0</vlan-id>
</ethernet-tag-id>
<orig-route-ip>127.0.0.3</orig-route-ip>
</inc-multi-ethernet-tag-res>
</evpn-route>
<evpn-route>
<route-key>AhgAAX8AAAMAAQAAAAAwDkiBCd+/IAwLCwE=</route-key>
<route-distinguisher>127.0.0.3:1</route-distinguisher>
<attributes>
<origin>
<value>igp</value>
</origin>
<ipv4-next-hop>
<global>127.0.0.3</global>
</ipv4-next-hop>
<local-pref>
<pref>100</pref>
</local-pref>
<unrecognized-attributes>
<type>22</type>
<value>AAYAC2B/AAAD</value>
<partial>false</partial>
<transitive>true</transitive>
</unrecognized-attributes>
<as-path/>
<extended-communities>
<route-target-extended-community>
<global-administrator>65000</global-administrator>
<local-administrator>AAAAsw==</local-administrator>
</route-target-extended-community>
<transitive>true</transitive>
</extended-communities>
<extended-communities>
<encapsulation-extended-community>
<tunnel-type>vxlan</tunnel-type>
</encapsulation-extended-community>
<transitive>true</transitive>
</extended-communities>
</attributes>
<mac-ip-adv-route>
<arbitrary>
<arbitrary>AAAAAAAAAAAA</arbitrary>
</arbitrary>
<mac-address>0e:48:81:09:df:bf</mac-address>
<mpls-label1>182</mpls-label1>
<ethernet-tag-id>
<vlan-id>0</vlan-id>
</ethernet-tag-id>
<ip-address>12.11.11.1</ip-address>
</mac-ip-adv-route>
</evpn-route>
</evpn-routes>

Comment by Claudio David Gasparini [ 02/Jun/16 ]

Might it be that you are expecting only one route containing <inc-multi-ethernet-tag-res>and <mac-ip-adv-route> at the same time?

Generated at Wed Feb 07 19:13:09 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.