Skip to content
Snippets Groups Projects
Commit 18b5143c authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Device component - OpenConfig driver:

- Added missing AFI-SAFI in BGP config
parent b7a46ef0
No related branches found
No related tags found
2 merge requests!359Release TeraFlowSDN 5.0,!286Resolve "(CTTC) Implement integration test between E2E-IP-Optical SDN Controllers"
......@@ -134,6 +134,12 @@ def add_protocol_NI(parameters,vendor, DEL):
with tag('as') :text(parameters['as'])
if "router_id" in parameters:
with tag('router-id'):text(parameters['router_id'])
with tag('afi-safis'):
with tag('afi-safi', 'xmlns:oc-bgp-types="http://openconfig.net/yang/bgp-types"'):
with tag('afi-safi-name'): text('oc-bgp-types:IPV4_UNICAST')
with tag('config'):
with tag('afi-safi-name'): text('oc-bgp-types:IPV4_UNICAST')
with tag('enabled'): text('true')
if 'neighbors' in parameters:
with tag('neighbors'):
for neighbor in parameters['neighbors']:
......
......@@ -19,6 +19,15 @@
<as>{{as}}</as>
<router-id>{{router_id}}</router-id>
</config>
<afi-safis>
<afi-safi xmlns:oc-bgp-types="http://openconfig.net/yang/bgp-types">
<afi-safi-name>oc-bgp-types:IPV4_UNICAST</afi-safi-name>
<config>
<afi-safi-name>oc-bgp-types:IPV4_UNICAST</afi-safi-name>
<enabled>true</enabled>
</config>
</afi-safi>
</afi-safis>
</global>
{% if neighbors is defined %}
<neighbors>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment