diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2023-08-24 15:42:08 +0000 |
---|---|---|
committer | Viacheslav Hletenko <v.gletenko@vyos.io> | 2023-08-24 15:42:08 +0000 |
commit | 0f3749cb9414b5a66bca56e5c9a7a1f1782d5495 (patch) | |
tree | c53e8afbc3909d2e828b15d6aad6f7796f45279f /src/conf_mode | |
parent | 4ea1b15069406c96fb3c6dc8eceea298ff853ee8 (diff) | |
download | vyos-1x-0f3749cb9414b5a66bca56e5c9a7a1f1782d5495.tar.gz vyos-1x-0f3749cb9414b5a66bca56e5c9a7a1f1782d5495.zip |
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: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
inet6 fe80::d89c:dfff:fe1a:8689/64 scope link
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-x | src/conf_mode/container.py | 1 |
1 files changed, 1 insertions, 0 deletions
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 |