Commit 4119c99c authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Device:

OpenConfig Driver:
- updated delete operation for interfaces to just remove its description
parent 8b4fe999
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
<interfaces xmlns="http://openconfig.net/yang/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 and operation != 'delete' %} xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0" nc:operation="{{operation}}"{% endif %}>
        <name>{{name}}</name>
        {% if operation is not defined or operation != 'delete' %}
        <config>
            <name>{{name}}</name>
            {% if operation is defined and operation == 'delete' %}
            <description></description>
            {% else %}
            <description>{{description}}</description>
            <mtu>{{mtu}}</mtu>
        </config>
            {% endif %}
        </config>
    </interface>
</interfaces>