23a2b557f1
This reverts commit 129d958a51
.
Reason for revert: reverting back to 2.8.7 to modify chart
Change-Id: I68d3abfb19decc5eb470fcf43694506bc5edd4b6
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."""
|