diff --git a/src/device/service/drivers/openconfig/templates/Interfaces.py b/src/device/service/drivers/openconfig/templates/Interfaces.py
index 4a0ddafb37bd88a2b4e0aafe2c296e1038c19c72..51ee9fc66334a30a450144b4b8079575498aeef9 100644
--- a/src/device/service/drivers/openconfig/templates/Interfaces.py
+++ b/src/device/service/drivers/openconfig/templates/Interfaces.py
@@ -45,10 +45,10 @@ def parse(xml_data : ET.Element) -> List[Tuple[str, Dict[str, Any]]]:
         add_value_from_tag(interface, 'name', interface_name)
             
         # Get the type of interface according to the vendor's type
-        if 'ianaift:' in interface_type:
-            interface_type = interface_type.replace('ianaift:', '')                       #ADVA
-        elif 'idx'in interface_type:
-            interface_type = interface_type.replace('idx:', '')                           #CISCO
+        if 'ianaift:' in interface_type.text:
+            interface_type.text = interface_type.text.replace('ianaift:', '')                       #ADVA
+        elif 'idx'in interface_type.text:
+            interface_type.text = interface_type.text.replace('idx:', '')                           #CISCO
         add_value_from_tag(interface, 'type', interface_type)
 
         interface_mtu = xml_interface.find('oci:config/oci:mtu', namespaces=NAMESPACES)