-
Notifications
You must be signed in to change notification settings - Fork 187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
networkd: Implement ipv6-address-generation: stable-privacy #480
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1055,17 +1055,6 @@ def test_bridge_non_ovs_bond(self): | |
'ovs-br.network': ND_EMPTY % ('ovs-br', 'ipv6'), | ||
'non-ovs-bond.netdev': '[NetDev]\nName=non-ovs-bond\nKind=bond\n'}) | ||
|
||
def test_ovs_invalid_networkd_config(self): | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. todo: We need to keep this test-case, in order to not decrease Of course, we cannot use the current failure case any more, as that got fixed :) I'd suggest using something like this, which will trigger a similar failure-case: def test_ovs_invalid_networkd_config(self):
err = self.generate('''network:
version: 2
bridges:
br0:
openvswitch: {}
dhcp4: true
dhcp4-overrides:
use-domains: true
dhcp6: true
dhcp6-overrides:
use-domains: false
''', expect_fail=True)
self.assert_ovs({'cleanup.service': OVS_CLEANUP % {'iface': 'cleanup'}})
self.assertIn('br0: networkd requires that use-domains has the same value', err) |
||
err = self.generate('''network: | ||
version: 2 | ||
bridges: | ||
br0: | ||
openvswitch: {} | ||
ipv6-address-generation: stable-privacy | ||
''', expect_fail=True) | ||
self.assert_ovs({'cleanup.service': OVS_CLEANUP % {'iface': 'cleanup'}}) | ||
self.assertIn('br0: ipv6-address-generation mode is not supported by networkd', err) | ||
|
||
def test_ovs_duplicates_when_parser_needs_second_pass(self): | ||
''' Test case for LP: #2007682 | ||
The generator shouldn't generate duplicates when the parser | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick: We should potentially keep the original comment about "EUI-64" here.