summaryrefslogtreecommitdiff
path: root/debian/patches/openstack-no-network-config.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/openstack-no-network-config.patch')
-rw-r--r--debian/patches/openstack-no-network-config.patch40
1 files changed, 0 insertions, 40 deletions
diff --git a/debian/patches/openstack-no-network-config.patch b/debian/patches/openstack-no-network-config.patch
deleted file mode 100644
index 88449d1d..00000000
--- a/debian/patches/openstack-no-network-config.patch
+++ /dev/null
@@ -1,40 +0,0 @@
-Description: Fallback network config instead of network_data.json for OpenStack
- To make this acceptable as a SRU we keep the same behavior as is
- in the stable release which is to generate network for fallback nic
- only.
- .
- In this series, OpenStack datasource can optionally generate
- network_config from network_data.json if the datasource is configured
- with a file like /etc/cloud.cfg.d/openstack-net.cfg:
- .
- datasource:
- OpenStack:
- apply_network_config: true
-Forwarded: not-needed
-Author: Chad Smith <chad.smith@canonical.com>
-
---- a/cloudinit/sources/DataSourceOpenStack.py
-+++ b/cloudinit/sources/DataSourceOpenStack.py
-@@ -98,10 +98,9 @@ class DataSourceOpenStack(openstack.Sour
- if self._network_config != sources.UNSET:
- return self._network_config
-
-- # RELEASE_BLOCKER: SRU to Xenial and Artful SRU should not provide
-+ # Xenial, Artful and Bionic will not provide
- # network_config by default unless configured in /etc/cloud/cloud.cfg*.
-- # Patch Xenial and Artful before release to default to False.
-- if util.is_false(self.ds_cfg.get('apply_network_config', True)):
-+ if util.is_false(self.ds_cfg.get('apply_network_config', False)):
- self._network_config = None
- return self._network_config
- if self.network_json == sources.UNSET:
---- a/tests/unittests/test_datasource/test_openstack.py
-+++ b/tests/unittests/test_datasource/test_openstack.py
-@@ -345,6 +345,7 @@ class TestOpenStackDataSource(test_helpe
- settings.CFG_BUILTIN, None, helpers.Paths({'run_dir': self.tmp}))
- sample_json = {'links': [{'ethernet_mac_address': 'mymac'}],
- 'networks': [], 'services': []}
-+ ds_os.ds_cfg = {'apply_network_config': True} # Default is False
- ds_os.network_json = sample_json
- with test_helpers.mock.patch(mock_path) as m_convert_json:
- m_convert_json.return_value = example_cfg