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

Device - OpenConfig SBI driver:

- Corrected Jinja template for edit-config interface/subinterface
parent ce2ae05f
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"
<interfaces xmlns="http://openconfig.net/yang/interfaces" <interfaces xmlns="http://openconfig.net/yang/interfaces">
xmlns:oc-ip="http://openconfig.net/yang/interfaces/ip" >
<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 %}>
<name>{{name}}</name> <name>{{name}}</name>
{% if operation is defined and operation != 'delete' %} {% if operation is defined and operation != 'delete' %}
...@@ -31,20 +30,20 @@ ...@@ -31,20 +30,20 @@
</vlan> </vlan>
{% endif %} {% endif %}
{% if address_ip is defined %} {% if address_ip is defined %}
<oc-ip:ipv4> <ipv4 xmlns="http://openconfig.net/yang/interfaces/ip">
<oc-ip:config> <config>
{% if mtu is defined %}<mtu>{{mtu}}</mtu>{% endif%} {% if mtu is defined %}<mtu>{{mtu}}</mtu>{% endif%}
</oc-ip:config> </config>
<oc-ip:addresses> <addresses>
<oc-ip:address> <address>
<oc-ip:ip>{{address_ip}}</oc-ip:ip> <ip>{{address_ip}}</ip>
<oc-ip:config> <config>
<oc-ip:ip>{{address_ip}}</oc-ip:ip> <ip>{{address_ip}}</ip>
<oc-ip:prefix-length>{{address_prefix}}</oc-ip:prefix-length> <prefix-length>{{address_prefix}}</prefix-length>
</oc-ip:config> </config>
</oc-ip:address> </address>
</oc-ip:addresses> </addresses>
</oc-ip:ipv4> </ipv4>
{% endif %} {% endif %}
</subinterface> </subinterface>
</subinterfaces> </subinterfaces>
......
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