Skip to content

Commit 5db6d81

Browse files
author
Zhuli
authored
Enable SNAT after devstack installation with neutron-* services (apache#87)
1 parent b7a9445 commit 5db6d81

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

roles/install-devstack/tasks/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
2020
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
2121
./safe-devstack-vm-gate-wrap.sh
22+
23+
eval $(grep FLOATING_RANGE /opt/stack/new/devstack/local.conf)
24+
iptables -t nat -A POSTROUTING -s "$FLOATING_RANGE" -o $(ip -4 route | grep ^default | awk '{print $5}') -j MASQUERADE
2225
executable: /bin/bash
2326
chdir: '{{ ansible_user_dir }}/workspace'
2427
environment: '{{ zuul | zuul_legacy_vars }}'

0 commit comments

Comments
 (0)