Skip to content

Commit

Permalink
Keep IPv6 enablement/disablement upon upgrades
Browse files Browse the repository at this point in the history
Add `etc/sysctl.d/91-net-ipv6.conf` in the restore list

Signed-off-by: BenjiReis <benjamin.reis@vates.fr>
  • Loading branch information
benjamreis committed Jun 8, 2023
1 parent 806cfe0 commit a469a6b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,9 @@ def buildRestoreList(self):

self.restore_list += ['var/lib/xcp/verify_certificates']

# Keep IPv6 enablement/disablement upon upgrades
self.restore_list += ['etc/sysctl.d/91-net-ipv6.conf']

completeUpgradeArgs = ['mounts', 'installation-to-overwrite', 'primary-disk', 'backup-partnum', 'logs-partnum', 'net-admin-interface', 'net-admin-bridge', 'net-admin-configuration']
def completeUpgrade(self, mounts, prev_install, target_disk, backup_partnum, logs_partnum, admin_iface, admin_bridge, admin_config):

Expand Down

0 comments on commit a469a6b

Please sign in to comment.