Add IPv6 devstack support for namespace subnet driver
Change-Id: Ie35318df8ad7834f98060f0dc742a2cfd5949089
This commit is contained in:
parent
c69b36c528
commit
6e3e331caa
@ -73,7 +73,11 @@ function ovs_bind_for_kubelet() {
|
|||||||
sudo ip addr add "${port_ips[$i]}/${prefix}" dev "$ifname"
|
sudo ip addr add "${port_ips[$i]}/${prefix}" dev "$ifname"
|
||||||
done
|
done
|
||||||
if [[ "$KURYR_SUBNET_DRIVER" == "namespace" ]]; then
|
if [[ "$KURYR_SUBNET_DRIVER" == "namespace" ]]; then
|
||||||
|
if [ "$KURYR_IPV6" == "False" ]; then
|
||||||
subnetpool_id=${KURYR_NEUTRON_DEFAULT_SUBNETPOOL_ID:-${SUBNETPOOL_V4_ID}}
|
subnetpool_id=${KURYR_NEUTRON_DEFAULT_SUBNETPOOL_ID:-${SUBNETPOOL_V4_ID}}
|
||||||
|
else
|
||||||
|
subnetpool_id=${KURYR_NEUTRON_DEFAULT_SUBNETPOOL_ID:-${SUBNETPOOL_V6_ID}}
|
||||||
|
fi
|
||||||
cidrs=$(openstack subnet pool show "${subnetpool_id}" -c prefixes -f value)
|
cidrs=$(openstack subnet pool show "${subnetpool_id}" -c prefixes -f value)
|
||||||
subnetpool_cidr=$(python3 -c "print(${cidrs}[0])")
|
subnetpool_cidr=$(python3 -c "print(${cidrs}[0])")
|
||||||
sudo ip route add "$subnetpool_cidr" via "$pod_subnet_gw" dev "$ifname"
|
sudo ip route add "$subnetpool_cidr" via "$pod_subnet_gw" dev "$ifname"
|
||||||
|
Loading…
Reference in New Issue
Block a user