Skip to content

Commit be89f64

Browse files
committed
Merge release branch 4.7 to 4.8
* 4.7: Display hostname the VPC router runs on CLOUDSTACK-9266: Make deleting static routes in private gw work CLOUDSTACK-9264: Make /32 static routes for private gw work
2 parents 69d1a5e + a243339 commit be89f64

File tree

3 files changed

+6
-11
lines changed

3 files changed

+6
-11
lines changed

systemvm/patches/debian/config/opt/cloud/bin/configure.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,13 @@ def process(self):
8585

8686
def __update(self, route):
8787
if route['revoke']:
88-
command = "route del -net %s gw %s" % (route['network'], route['gateway'])
88+
command = "ip route del %s via %s" % (route['network'], route['gateway'])
8989
result = CsHelper.execute(command)
9090
else:
9191
command = "ip route show | grep %s | awk '{print $1, $3}'" % route['network']
9292
result = CsHelper.execute(command)
9393
if not result:
94-
route_command = "route add -net %s gw %s" % (route['network'], route['gateway'])
94+
route_command = "ip route add %s via %s" % (route['network'], route['gateway'])
9595
result = CsHelper.execute(route_command)
9696

9797

systemvm/patches/debian/config/opt/cloud/bin/cs_staticroutes.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,5 @@
2121
def merge(dbag, staticroutes):
2222
for route in staticroutes['routes']:
2323
key = route['network']
24-
revoke = route['revoke']
25-
if revoke:
26-
try:
27-
del dbag[key]
28-
except KeyError:
29-
pass
30-
else:
31-
dbag[key] = route
32-
24+
dbag[key] = route
3325
return dbag

ui/scripts/network.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5859,6 +5859,9 @@
58595859
linklocalip: {
58605860
label: 'label.linklocal.ip'
58615861
},
5862+
hostname: {
5863+
label: 'label.host'
5864+
},
58625865
state: {
58635866
label: 'label.state'
58645867
},

0 commit comments

Comments
 (0)