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),
            }
        )
no settings: manage.py builtin commands fail if settings file (from argument) doesn't exist
dataset/ETHPy150Open fp7-ofelia/ocf/expedient/src/python/plugins/openflow/plugin/gapi/rspec.py/_add_ports--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.2/tests/regressiontests/admin_scripts/tests.py/ManageNoSettings.test_builtin_with_bad_settings