![portdirect](/assets/img/avatar_default.png)
This PS updates the developer documentation to make use of the openstack-helm-infra repo and new developer environment. Implements: blueprint developer-environment Change-Id: I45b627f78b9504dc0abfbe7d0061ea3475ee4748
27 lines
983 B
Bash
Executable File
27 lines
983 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Copyright 2017 The Openstack-Helm Authors.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
# not use this file except in compliance with the License. You may obtain
|
|
# a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
# License for the specific language governing permissions and limitations
|
|
# under the License.
|
|
set -xe
|
|
|
|
# Assign IP address to br-ex
|
|
OSH_BR_EX_ADDR="172.24.4.1/24"
|
|
OSH_EXT_SUBNET="172.24.4.0/24"
|
|
sudo ip addr add ${OSH_BR_EX_ADDR} dev br-ex
|
|
sudo ip link set br-ex up
|
|
|
|
# Setup masquerading on default route dev to public subnet
|
|
DEFAULT_ROUTE_DEV="ens3"
|
|
sudo iptables -t nat -A POSTROUTING -o ${DEFAULT_ROUTE_DEV} -s ${OSH_EXT_SUBNET} -j MASQUERADE
|