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
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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']:
+9 −0
Original line number Diff line number Diff line
@@ -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>