Comment 3 for bug 1684349

Scott Moser (smoser) wrote :

Heres a simple recreate using net-convert.py

$ cat simple-ipv6.yaml
version: 1
config:
  - type: physical
    name: eth0
    subnets:
     - type: static
       address: "2000:192:168::5"
       netmask: 64
       routes:
        - netmask: 0
          gateway: "2000:192:168::1"
          network: "::"

$ PYTHONPATH=$PWD ./tools/net-convert.py --network-data=simple-ipv6.yaml \
     --kind=yaml --output-kind=eni --directory=out.d
...
Traceback (most recent call last):
  File "./tools/net-convert.py", line 82, in <module>
    main()
...
    subnet['netmask'] = mask2cidr(subnet['netmask'])
  File "/home/smoser-public/src/cloud-init/cloud-init/cloudinit/net/network_state.py", line 737, in mask2cidr
    if ':' in mask:
TypeError: argument of type 'int' is not iterable