Skip to content

Commit a97de95

Browse files
jeanCopilot
authored andcommitted
Enhance IPv6 redundancy handling in radvd configuration
Co-authored-by: Copilot <copilot@github.com>
1 parent 51ade96 commit a97de95

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

systemvm/debian/opt/cloud/bin/cs/CsVpcGuestNetwork.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,12 @@ def add_radvd_conf(self, entry):
107107
self.conf.append(" AdvSendAdvert on;")
108108
self.conf.append(" MinRtrAdvInterval 5;")
109109
self.conf.append(" MaxRtrAdvInterval 15;")
110-
self.conf.append(" prefix %s" % full_addr)
111-
self.conf.append(" {")
112-
self.conf.append(" AdvOnLink on;")
113-
self.conf.append(" AdvAutonomous on;")
114-
self.conf.append(" };")
110+
if entry['router_guest_ip6'] == entry['router_guest_ip6_gateway'] or self.cl.is_redundant():
111+
self.conf.append(" prefix %s" % full_addr)
112+
self.conf.append(" {")
113+
self.conf.append(" AdvOnLink on;")
114+
self.conf.append(" AdvAutonomous on;")
115+
self.conf.append(" };")
115116
if 'dns6' in list(entry.keys()) and entry['dns6']:
116117
for dns in entry['dns6'].split(","):
117118
self.conf.append(" RDNSS %s" % dns)

0 commit comments

Comments
 (0)