
Image changes: * base image ubuntu:18.04 * MAAS version 2.8.6-8602-g.07cdffcaa-0ubuntu1~18.04.1 from ppa/2.8 * default contents of /var/lib/maas are archived in /opt/maas * updated patches: - 2.3_bios_grub_partition.patch, changed in maas [0] - 2.3_partitiontable_does_not_exist.patch, changed in maas [1] [2] - 2.3_secure_headers.patch, updated for twisted 17.9.0 [3] * removed patches: - 2.3_bios_grub_preseed.patch, changed in maas, now N/A [0] - 2.3_hostheader.patch, fixed in maas [4] - 2.3_maas_enlist.patch, fixed in maas [5] - 2.3_mac_address.patch, fixed in maas [6] * new patches: - 2.8_maas_ipmi_autodetect_tool.patch, enlistment reliability * reformatted patches due to blackening change [1]: - 2.3_configure_ipmi_user.patch - 2.3_ipmi_error.patch - 2.3_kernel_package.patch, custom req to specify kernel package - 2.3_nic_filter.patch, custom req to ignore cali* interfaces - 2.3_region_secret_rotate.patch - 2.3_route.patch Chart changes: * maas-region podport is 5240 * maas config option http_boot is no longer configurable [7] * start script restores some default files into /var/lib/maas * register-rack-controller script removes old files in /etc/maas * enlist userdata now matches commissioning/curtin userdata [8] * force_gpt option is removed [9], as GPT is now the default * update to configure remote_syslog in import resources job [10] * enlist_commissioning is disabled for backwards compatibility [11] 0:d8e234eb09
1:db30bb39fa
2:665feb7575
3: https://github.com/twisted/twisted/blob/twisted-17.9.0/src/twisted/web/server.py 4:573da69729
5:d390a1da6a
6:34631c2fe5
7:0e94c26a53
8:22641cffcc
9:97c25a0486
10:d67c359c7b
11:51b9712c20
Change-Id: I0685d76cf083ff5aa33c8db552059721289d5c53
18 lines
696 B
Diff
18 lines
696 B
Diff
diff --git a/src/maasserver/preseed_network.py b/src/maasserver/preseed_network.py
|
|
index 99a3ce309..2a9e72d88 100644
|
|
--- a/src/maasserver/preseed_network.py
|
|
+++ b/src/maasserver/preseed_network.py
|
|
@@ -308,7 +308,11 @@ class InterfaceConfiguration:
|
|
|
|
def _get_matching_routes(self, source):
|
|
"""Return all route objects matching `source`."""
|
|
- return {route for route in self.routes if route.source == source}
|
|
+ return {
|
|
+ route
|
|
+ for route in self.routes
|
|
+ if str(route.source.cidr) == str(source.cidr)
|
|
+ }
|
|
|
|
def _generate_addresses(self, version=1):
|
|
"""Generate the various addresses needed for this interface."""
|