sysconfig renderer does not process 'routes' from network_state

Bug #1687726 reported by Ryan Harper on 2017-05-02
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-init
Medium
Unassigned

Bug Description

% cat network_static_routes.yaml
network:
    version: 1
    config:
      - type: physical
        name: interface0
        mac_address: "52:54:00:12:34:00"
        subnets:
              - address: 172.23.31.42/26
                gateway: 172.23.31.2
                type: static
      - type: route
        id: 4
        metric: 0
        destination: 10.0.0.0/12
        gateway: 172.23.31.1
      - type: route
        id: 5
        metric: 0
        destination: 192.168.0.0/16
        gateway: 172.23.31.1
      - type: route
        id: 6
        metric: 1
        destination: 10.200.0.0/16
        gateway: 172.23.31.1

% PYTHONPATH=`pwd` ./tools/net-convert.py --network-data network_static_routes.yaml --kind yaml --output-kind sysconfig -d target

% find target -type f
target/etc/resolv.conf
target/etc/udev/rules.d/70-persistent-net.rules
target/etc/sysconfig/network-scripts/ifcfg-interface0
target/etc/sysconfig/network

No route-$iface files were generated.

1. no cloud, rendering from in-tree
2. cloud-init master tip

Scott Moser (smoser) on 2017-05-03
Changed in cloud-init:
status: New → Confirmed
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers