diff options
author | Pavel Abalikhin <anpavl@gmail.com> | 2021-01-14 01:19:17 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-13 16:19:17 -0600 |
commit | 9a258eebd96aa5ad4486dba1fe86bea5bcf00c2f (patch) | |
tree | 1fa550ce104f5b3b9ad26956a99d14b24a9d9974 /cloudinit/net | |
parent | 162fb8393555cb14238a352918654a0bbc1030e7 (diff) | |
download | vyos-cloud-init-9a258eebd96aa5ad4486dba1fe86bea5bcf00c2f.tar.gz vyos-cloud-init-9a258eebd96aa5ad4486dba1fe86bea5bcf00c2f.zip |
net: Fix static routes to host in eni renderer (#668)
Route '-net' parameter is incompatible with /32 IPv4 addresses so we
have to use '-host' in that case.
Diffstat (limited to 'cloudinit/net')
-rw-r--r-- | cloudinit/net/eni.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cloudinit/net/eni.py b/cloudinit/net/eni.py index 0074691b..a89e5ad2 100644 --- a/cloudinit/net/eni.py +++ b/cloudinit/net/eni.py @@ -387,6 +387,8 @@ class Renderer(renderer.Renderer): if k == 'network': if ':' in route[k]: route_line += ' -A inet6' + elif route.get('prefix') == 32: + route_line += ' -host' else: route_line += ' -net' if 'prefix' in route: |