canonical / canonical/cloud-init

sysconfig renderer does not process 'routes' from network_state

Open
#2,881 0 comments 0 reactions 0 assignees View on GitHub
bug launchpad
Dominant language
Python
Stars
3.8k
Forks
1.1k
Avg merge
2d 23h
Merged PRs (30d)
18

Description

This bug was originally filed in Launchpad as [LP: #1687726](https://bugs.launchpad.net/cloud-init/+bug/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.

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.