Loading src/device/service/drivers/openconfig/templates/Interfaces.py +4 −4 Original line number Diff line number Diff line Loading @@ -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) Loading Loading
src/device/service/drivers/openconfig/templates/Interfaces.py +4 −4 Original line number Diff line number Diff line Loading @@ -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) Loading