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

Pre-merge cleanup.

parent 0b07526e
Branches 17-use-saref4syst-for-s4ehaw-ban
No related tags found
2 merge requests!235Release TeraFlowSDN 3.0,!151Resolve "(TID) New BGP-LS Speaker component"
......@@ -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)
......
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