mirror of
https://github.com/systemd/systemd.git
synced 2024-10-27 18:55:40 +03:00
network: Add test for explicit 'static' IPv6Token
Add a test case for an explicitly-specified 'static' IPv6Token. Signed-off-by: Kevin P. Fleming <kevin@km6g.us>
This commit is contained in:
parent
b751c3e747
commit
b241fa00e9
@ -0,0 +1,6 @@
|
||||
[Match]
|
||||
Name=veth99
|
||||
|
||||
[Network]
|
||||
IPv6AcceptRA=true
|
||||
IPv6Token=static:::1a:2b:3c:4d
|
@ -2681,6 +2681,7 @@ class NetworkdRATests(unittest.TestCase, Utilities):
|
||||
'ipv6-prefix.network',
|
||||
'ipv6-prefix-veth.network',
|
||||
'ipv6-prefix-veth-token-static.network',
|
||||
'ipv6-prefix-veth-token-static-explicit.network',
|
||||
'ipv6-prefix-veth-token-prefixstable.network']
|
||||
|
||||
def setUp(self):
|
||||
@ -2715,6 +2716,15 @@ class NetworkdRATests(unittest.TestCase, Utilities):
|
||||
print(output)
|
||||
self.assertRegex(output, '2002:da8:1:0:1a:2b:3c:4d')
|
||||
|
||||
def test_ipv6_token_static_explicit(self):
|
||||
copy_unit_to_networkd_unit_path('25-veth.netdev', 'ipv6-prefix.network', 'ipv6-prefix-veth-token-static-explicit.network')
|
||||
start_networkd()
|
||||
self.wait_online(['veth99:routable', 'veth-peer:degraded'])
|
||||
|
||||
output = check_output(*networkctl_cmd, '-n', '0', 'status', 'veth99', env=env)
|
||||
print(output)
|
||||
self.assertRegex(output, '2002:da8:1:0:1a:2b:3c:4d')
|
||||
|
||||
def test_ipv6_token_prefixstable(self):
|
||||
copy_unit_to_networkd_unit_path('25-veth.netdev', 'ipv6-prefix.network', 'ipv6-prefix-veth-token-prefixstable.network')
|
||||
start_networkd()
|
||||
|
Loading…
Reference in New Issue
Block a user