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

Device component - OpenConfig driver:

- Recovered removed blocks
- Adapted IP address assignment to interfaces being part of a network instance
parent db0c5aad
No related branches found
No related tags found
2 merge requests!294Release TeraFlowSDN 4.0,!196Resolve "(CTTC) Incorrect endpoint lookup in NBI ETSI BWM plugin"
...@@ -30,6 +30,22 @@ ...@@ -30,6 +30,22 @@
</match> </match>
</vlan> </vlan>
{% endif %} {% endif %}
{% if address_ip is defined %}
<oc-ip:ipv4>
<oc-ip:config>
<oc-ip:mtu>1500</mtu>
</oc-ip:config>
<oc-ip:addresses>
<oc-ip:address>
<oc-ip:ip>{{address_ip}}</oc-ip:ip>
<oc-ip:config>
<oc-ip:ip>{{address_ip}}</oc-ip:ip>
<oc-ip:prefix-length>{{address_prefix}}</oc-ip:prefix-length>
</oc-ip:config>
</oc-ip:address>
</oc-ip:addresses>
</oc-ip:ipv4>
{% endif %}
</subinterface> </subinterface>
</subinterfaces> </subinterfaces>
{% endif %} {% endif %}
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<name>{{name}}</name> <name>{{name}}</name>
<config> <config>
<name>{{name}}</name> <name>{{name}}</name>
<type xmlns:oc-ni-types="http://openconfig.net/yang/network-instance-types">oc-ni-types:L3VRF</type> <type xmlns:oc-ni-types="http://openconfig.net/yang/network-instance-types">oc-ni-types:{{type}}</type>
</config> </config>
<interfaces> <interfaces>
<interface{% if operation is defined %} xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0" nc:operation="{{operation}}"{% endif %}> <interface{% if operation is defined %} xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0" nc:operation="{{operation}}"{% endif %}>
...@@ -17,33 +17,3 @@ ...@@ -17,33 +17,3 @@
</interfaces> </interfaces>
</network-instance> </network-instance>
</network-instances> </network-instances>
<interfaces xmlns="http://openconfig.net/yang/interfaces">
<interface>
<name>{{interface}}</name>
<config>
<name>{{interface}}</name>
</config>
<subinterfaces>
<subinterface>
<index>{{subinterface}}</index>
<config>
<index>{{subinterface}}</index>
</config>
<ipv4 xmlns="http://openconfig.net/yang/interfaces/ip">
<config>
<mtu>1500</mtu>
</config>
<addresses>
<address>
<ip>{{address_ip}}</ip>
<config>
<ip>{{address_ip}}</ip>
<prefix-length>{{address_prefix}}</prefix-length>
</config>
</address>
</addresses>
</ipv4>
</subinterface>
</subinterfaces>
</interface>
</interfaces>
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