def manage_fip(): for rid in relation_ids('cplane-controller-ovs'): for unit in related_units(rid): fip_set = relation_get(attribute='fip-set', unit=unit, rid=rid) if fip_set: if check_interface(config('fip-interface')): add_bridge('br-fip', config('fip-interface')) else: juju_log('Fip interface doesnt exist, and \ will be used by default by Cplane controller')
def manage_fip(): for rid in relation_ids('cplane-controller'): for unit in related_units(rid): fip_mode = relation_get(attribute='fip-mode', unit=unit, rid=rid) if fip_mode == 'True': if check_interface(config('fip-interface')): add_bridge('br-fip', config('fip-interface')) else: juju_log('Fip interface doesnt exist, and \ will be used by default by Cplane controller')
def install(): apt_update(fatal=True) # disable_neutron_agent() pkgs = determine_packages() apt_install(pkgs, fatal=True) create_vfio_file() install_cplane_packages() install_docker() add_bridge('br-ext', interface=config('data-interface'), gw=config('data-gateway'))
def install(): apt_update(fatal=True) # disable_neutron_agent() pkgs = determine_packages() apt_install(pkgs, fatal=True) install_cplane_packages() add_bridge('br-ext', config('data-interface')) if check_interface(config('tun-interface')): add_bridge('br-tun', config('tun-interface')) else: juju_log('Tunnel interface doesnt exist, and will be \ used by default by Cplane controller')
def install(): apt_update(fatal=True) # disable_neutron_agent() pkgs = determine_packages() apt_install(pkgs, fatal=True) install_cplane_packages() add_bridge('br-ext', interface=config('data-interface'), gw=config('data-gateway')) if check_interface(config('tun-interface')): add_bridge('br-tun', interface=config('tun-interface'), gw=config('tun-gateway')) else: log('Tunnel interface doesnt exist, and will be ' 'used by default by Cplane controller')
def install(): apt_update(fatal=True) # disable_neutron_agent() pkgs = determine_packages() apt_install(pkgs, fatal=True) create_vfio_file() install_cplane_packages() add_bridge('br-ext', interface=config('data-interface'), gw=config('data-gateway')) if check_interface(config('tun-interface')): add_bridge('br-tun', interface=config('tun-interface'), gw=config('tun-gateway')) else: log('Tunnel interface doesnt exist, and will be ' 'used by default by Cplane controller')