diff --git a/src/device/service/drivers/openconfig/templates/interface/edit_config.xml b/src/device/service/drivers/openconfig/templates/interface/edit_config.xml index ae29586a607b8ffd25e61c0aa9056109aacd3cb9..ff15d1d682ea910208237c32adcc93029fb036d8 100644 --- a/src/device/service/drivers/openconfig/templates/interface/edit_config.xml +++ b/src/device/service/drivers/openconfig/templates/interface/edit_config.xml @@ -1,12 +1,14 @@ <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> + {% endif %} </config> - {% endif %} </interface> </interfaces>