def port_remove(br, port, if_exists=True):
 param_if_exists = _param_if_exists(if_exists)
 if (port and (not br)):
  cmd = 'ovs-vsctl {1}del-port {0}'.format(port, param_if_exists)
 else:
  cmd = 'ovs-vsctl {2}del-port {0} {1}'.format(br, port, param_if_exists)
 result = __salt__['cmd.run_all'](cmd)
 retcode = result['retcode']
 return _retcode_to_bool(retcode)

def port_remove ( br , port , if_exists = True ) : param_if_exists = _param_if_exists ( if_exists ) if ( port and ( not br ) ) : cmd = 'ovs-vsctl {1}del-port {0}' . format ( port , param_if_exists ) else : cmd = 'ovs-vsctl {2}del-port {0} {1}' . format ( br , port , param_if_exists ) result = __salt__ [ 'cmd.run_all' ] ( cmd ) retcode = result [ 'retcode' ] return _retcode_to_bool ( retcode )
deletes port .