sysconfig renderer does not process 'routes' from network_state
This bug was originally filed in Launchpad as LP: #1687726
Launchpad details
affected_projects = [] assignee = None assignee_name = None date_closed = None date_created = 2017-05-02T19:12:48.487132+00:00 date_fix_committed = None date_fix_released = None id = 1687726 importance = medium is_complete = False lp_url = https://bugs.launchpad.net/cloud-init/+bug/1687726 milestone = None owner = raharper owner_name = Ryan Harper private = False status = confirmed submitter = raharper submitter_name = Ryan Harper tags = ['centos7'] duplicates = []
Launchpad user Ryan Harper(raharper) wrote on 2017-05-02T19:12:48.487132+00:00
% 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.
- no cloud, rendering from in-tree
- cloud-init master tip