cloud-init-dev team mailing list archive
-
cloud-init-dev team
-
Mailing list archive
-
Message #01782
[Merge] ~smoser/cloud-init:feature/feature-flag-v2 into cloud-init:master
Scott Moser has proposed merging ~smoser/cloud-init:feature/feature-flag-v2 into cloud-init:master.
Commit message:
advertise network config v2 support (NETWORK_CONFIG_V2) in features.
ef18b8ac4c added support for handing network config v2 (aka netplan
format). This just adds that feature to the list of supported features.
Requested reviews:
cloud init development team (cloud-init-dev)
For more details, see:
https://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merge/320555
--
Your team cloud init development team is requested to review the proposed merge of ~smoser/cloud-init:feature/feature-flag-v2 into cloud-init:master.
diff --git a/cloudinit/version.py b/cloudinit/version.py
index e61597d..3a28843 100644
--- a/cloudinit/version.py
+++ b/cloudinit/version.py
@@ -9,6 +9,7 @@ __VERSION__ = "0.7.9"
FEATURES = [
# supports network config version 1
'NETWORK_CONFIG_V1',
+ 'NETWORK_CONFIG_V2',
]
diff --git a/tests/unittests/test_version.py b/tests/unittests/test_version.py
new file mode 100644
index 0000000..792ea77
--- /dev/null
+++ b/tests/unittests/test_version.py
@@ -0,0 +1,14 @@
+# This file is part of cloud-init. See LICENSE file for license information.
+
+from cloudinit import version
+
+from .helpers import CiTestCase
+
+class TestExportsFeatures(CiTestCase):
+ def test_has_network_config_v1(self):
+ self.assertIn('NETWORK_CONFIG_V1', version.FEATURES)
+
+ def test_has_network_config_v2(self):
+ self.assertIn('NETWORK_CONFIG_V2', version.FEATURES)
+
+# vi: ts=4 expandtab
References