def _add_ports(switch_elem, switch, slice_urn):
    
    ifaces = switch.openflowinterface_set.all()
        
    for iface in ifaces:
        et.SubElement(
            switch_elem, PORT_TAG, {
                URN: _port_to_urn(switch.datapath_id, iface.port_num),
            }
        )
Add the ports tags for the switch
dataset/ETHPy150Open fp7-ofelia/ocf/expedient/src/python/plugins/openflow/plugin/gapi/rspec.py/_add_ports