Skip to content

Commit

Permalink
removing static ip from vgw
Browse files Browse the repository at this point in the history
  • Loading branch information
sanju-a committed Dec 3, 2015
1 parent f57eeef commit 3d0d281
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cluster/manifests.hash
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ contrail-vrouter-agent.manifest md5=75706835d2b6b3ba1be0228e9cbb30e7
contrail-web.manifest md5=2c773343f4b4f421d7d4d9c06f0850ad
ifmap-server.manifest md5=f27327ed74c803a53809aad5e26cbc45
kube-network-manager.manifest md5=9b4bbd234cd058ef8f151b8ac99c5c1f
provision_gateway.sh md5=6394c93170d3e4311fcc18ff15eebff2
provision_gateway.sh md5=09bbf72327df335f76eb83442f5e6613
provision_kubelet_plugin.sh md5=a74fad60dfc14f2ab034c132ed5afa12
provision_master.sh md5=83fa8fa2f9ccfe2035ce4add71df7433
provision_minion.sh md5=5dcbc05af65c24aeafa080571e6bcebb
Expand Down
8 changes: 4 additions & 4 deletions cluster/provision_gateway.sh
Original file line number Diff line number Diff line change
Expand Up @@ -585,10 +585,10 @@ y
gcloud compute routes create ip-$ocpubgwname --next-hop-instance `hostname` --next-hop-instance-zone $zone --destination-range $OPENCONTRAIL_PUBLIC_SUBNET
# create and configure vgw with static IP
# vgw will be the gateway for the public subnet
grep -q 'auto vgw' $itf || echo -e "\nauto vgw" >> $itf
grep -q 'iface vgw inet static' $itf || echo "iface vgw inet static" >> $itf
grep -q "address $ocpubgw" $itf || echo -e " address $ocpubgw\n netmask $ocpubmask" >> $itf
/etc/init.d/networking restart
#grep -q 'auto vgw' $itf || echo -e "\nauto vgw" >> $itf
#grep -q 'iface vgw inet static' $itf || echo "iface vgw inet static" >> $itf
#grep -q "address $ocpubgw" $itf || echo -e " address $ocpubgw\n netmask $ocpubmask" >> $itf
#/etc/init.d/networking restart
fi
# Since we have external network plumbed by both gke and vrouter there will
# be 2 routes for the same prefix. It will not have any issue though.
Expand Down

0 comments on commit 3d0d281

Please sign in to comment.