ipv6 static routes configured for eni are incorrect

Bug #1818669 reported by raphael.glon
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fix Released

Bug Description

static routes rendered for eni configuration are not correct


    - mac_address: aa:12:bc:34:ee:ac
      name: eno3
      - address: fd00::12/64
        dns_nameservers: ['fd00:2::15']
        gateway: fd00::1
        ipv6: true
        - netmask: '32'
          network: 'fd00:12::'
          gateway: fd00::2
        type: static
      type: physical
    version: 1

Cloud init renders:
auto lo
iface lo inet loopback

auto eno3
iface eno3 inet6 static
    address fd00::12/64
    dns-nameservers fd00:2::15
    gateway fd00::1
    post-up route add -net fd00:12:: netmask 32 gw fd00::2 || true
    pre-down route del -net fd00:12:: netmask 32 gw fd00::2 || true

but the post-up/pre-down commands are incorrect (tested, even when replacing the 32 netmask by ffff:ffff::)

One working version
    post-up route add -A inet6 fd00:12::/32 gw fd00::2 || true
    pre-down route del -A inet6 fd00:12::/32 gw fd00::2 || true

Fix proposal available here

Related branches

description: updated
Revision history for this message
Server Team CI bot (server-team-bot) wrote :

This bug is fixed with commit 22e33293 to cloud-init on branch master.
To view that commit see the following URL:

Changed in cloud-init:
status: New → Fix Committed
Revision history for this message
Chad Smith (chad.smith) wrote : Fixed in cloud-init version 19.1.

This bug is believed to be fixed in cloud-init in version 19.1. If this is still a problem for you, please make a comment and set the state back to New

Thank you.

Changed in cloud-init:
status: Fix Committed → Fix Released
Revision history for this message
James Falcon (falcojr) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.