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.
dataset/ETHPy150Open openstack/nova/nova/network/linux_net.py/_ip_bridge_cmd