[openstack-dev] [devstack] route to the fixed-range of default(demo) network

Yoshihiro Kaneko ykaneko0929 at gmail.com
Wed May 29 04:25:37 UTC 2013


Hi,

When q-l3 and ovs based plugin and netns are used, a route to the
fixed range of default network is added.

devstack/lib/quantum:

            if is_quantum_ovs_base_plugin && [[ "$Q_USE_NAMESPACE" =
"True" ]]; then
                CIDR_LEN=${FLOATING_RANGE#*/}
                sudo ip addr add $EXT_GW_IP/$CIDR_LEN dev $PUBLIC_BRIDGE
                sudo ip link set $PUBLIC_BRIDGE up
                ROUTER_GW_IP=`quantum port-list -c fixed_ips -c
device_owner | grep router_gateway | awk -F '"' '{ print $8; }'`
                sudo route add -net $FIXED_RANGE gw $ROUTER_GW_IP
            fi

Is this route necessary?
It allows other tenants to access fixed IPs.

Thanks,
Kaneko



More information about the OpenStack-dev mailing list