From 0f3749cb9414b5a66bca56e5c9a7a1f1782d5495 Mon Sep 17 00:00:00 2001 From: Viacheslav Hletenko Date: Thu, 24 Aug 2023 15:42:08 +0000 Subject: T5506: Add link-local IPv6 address for container interfaces Fix for add IPv6 link-local address for container interfaces set container network NET01 prefix '10.0.0.0/24' set container network NET01 prefix '2001:db8:2222::/64' % ip -6 addr show scope link dev pod-NET01 17: pod-NET01: mtu 1500 qdisc noqueue state UP group default qlen 1000 inet6 fe80::d89c:dfff:fe1a:8689/64 scope link --- src/conf_mode/container.py | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/conf_mode/container.py b/src/conf_mode/container.py index 478868a9a..754742c37 100755 --- a/src/conf_mode/container.py +++ b/src/conf_mode/container.py @@ -463,6 +463,7 @@ def apply(container): # it to a VRF as there's no consumer, yet. if os.path.exists(f'/sys/class/net/{network_name}'): tmp = Interface(network_name) + tmp.add_ipv6_eui64_address('fe80::/64') tmp.set_vrf(network_config.get('vrf', '')) return None -- cgit v1.2.3