def port_add(br, port, may_exist=False):
 param_may_exist = _param_may_exist(may_exist)
 cmd = 'ovs-vsctl {2}add-port {0} {1}'.format(br, port, param_may_exist)
 result = __salt__['cmd.run_all'](cmd)
 retcode = result['retcode']
 return _retcode_to_bool(retcode)

def port_add ( br , port , may_exist = False ) : param_may_exist = _param_may_exist ( may_exist ) cmd = 'ovs-vsctl {2}add-port {0} {1}' . format ( br , port , param_may_exist ) result = __salt__ [ 'cmd.run_all' ] ( cmd ) retcode = result [ 'retcode' ] return _retcode_to_bool ( retcode )
creates on bridge a new port named port .