def _ip_bridge_cmd(action, params, device):
 cmd = ['ip', 'addr', action]
 cmd.extend(params)
 cmd.extend(['dev', device])
 return cmd

def _ip_bridge_cmd ( action , params , device ) : cmd = [ 'ip' , 'addr' , action ] cmd . extend ( params ) cmd . extend ( [ 'dev' , device ] ) return cmd
build commands to add/del ips to bridges/devices .