Merge lp:~smoser/cloud-init/trunk.net1-cmdline-ip into lp:~smoser/cloud-init/trunk.net1
| Status: | Merged |
|---|---|
| Merged at revision: | 1212 |
| Proposed branch: | lp:~smoser/cloud-init/trunk.net1-cmdline-ip |
| Merge into: | lp:~smoser/cloud-init/trunk.net1 |
| Diff against target: |
385 lines (+298/-13) 2 files modified
cloudinit/net/__init__.py (+171/-13) tests/unittests/test_net.py (+127/-0) |
| To merge this branch: | bzr merge lp:~smoser/cloud-init/trunk.net1-cmdline-ip |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Scott Moser | Pending | ||
|
Review via email:
|
|||
Commit Message
support reading network config from kernel command line
This adds support for suppling network configuration on the
kernel command line in 2 ways:
a.) kernel command line includes 'network-
value of that parameter is base64 encoded json (or yaml)
it is taken as network config yaml.
In order to save space on kernel command line, it can be
base64 encoded gzipped json also.
b.) ip= paired with files authored by klibc's ipconfig tool
When network devices are brought up in the initramfs, klibc's
ipconfig tool writes files are named /run/net-
The best documentation available on that tool is
/usr/
Also changes util.get_cmdline() to return the command line of
pid 1 if it is in a container.
- 1207. By Scott Moser on 2016-03-24
-
add suport for base64 encoded gzipped text on command line
add tests to show this functional.
- 1208. By Scott Moser on 2016-03-24
-
improve comment
| Ryan Harper (raharper) wrote : | # |
| Scott Moser (smoser) wrote : | # |
will address comments and psuh


Looks good. COmments below, needs commit description which captures what we're adding here.