lp:~raharper/curtin/trunk.net-manual
- Get this branch:
- bzr branch lp:~raharper/curtin/trunk.net-manual
Branch merges
- Server Team CI bot: Needs Fixing (continuous-integration)
- Scott Moser: Pending requested
-
Diff: 199 lines (+78/-23)3 files modifiedcurtin/commands/apply_net.py (+14/-3)
curtin/net/__init__.py (+22/-11)
tests/unittests/test_net.py (+42/-9)
Branch information
Recent revisions
- 363. By Ryan Harper
-
network,unittest: add bonding tests and cleanup newline rendering
Add a unittest to validate bonding network config render, specifically
when to emit auto $iface for dependent bond slaves.
Cleanup newline logic so we always have a clean '\n\n' between stanzas - 362. By Ryan Harper
-
net: don't write udev rules if iface does not have mac_address
For manually configured interfaces, we only require a type: 'physical'
and a name: key in the network config. In this case, if we have no
mac_address key then we do not need to emit a udev rule.Add some logging and info output to make apply_net provide useful
output as well as stacktrace upon errors. - 360. By Ryan Harper
-
net: don't emit auto $iface when interface is not configured
auto eth0 when the interface is expected to be manually configured
doesn't make sense; so don't emit an auto line in e/n/i unless the
device includes a subnet configuration. - 359. By Scott Moser
-
tools/ssh-
keys-list: fix a bug in modes, add argparse There was actually no way to request 'json' output. And the mode
'public-keys' would result in a stack trace.This fixes those 2 issues and adds argparse so we get some help.
- 358. By Ryan Harper
-
Add bond parsing & improved source, source-directory parsing for /e/n/i.
This give the ability for the parser to handle bond interface in the
/etc/network/interfaces configuration. The resulting dictionary will contain a
bond dictionary if any bond options are defined for that interface definition
in /etc/network/interfaces.
Improves the source and source-directory parsing to match was is documented in
/etc/network/interfaces for ubuntu.
Supports parsing glob in both source and source-directory and performs regex
matching for source-directory to parse the same as /etc/network/interfaces is
defined. A _source_path key is provided in each dictionary entry for each
element defining the path the interface was created. - 357. By Scott Moser
-
tox.ini: run with 'python3' rather than python3.4 or python3.5
There is python3 on xenial, but it is python3.5 which differs
from the python3.4 which is on trusty.This change still allows 'tox' to work on trusty.
Admittedly, we do test python3.5 only on xenial and python3.4 only
on trusty, but we can solve that at a future date. - 356. By Ryan Harper
-
curtin/net: move global dns-* options under auto lo in ENI
ifupdown expects any dns-* options to be related to an iface stanza
The only iface ensured to be called with ifup is lo; moving the dns-*
parameters under iface lo allows dns options to always be present even
if other interfaces are not ifup'ed.Update unittests and add new vmtest (TestNetworkStatic) to confirm
proper configuration under lo iface. - 355. By Ryan Harper
-
vmtests: implement uefi boot mode via pflash
Add support for uefi to tools/launch and teach vmtests to switch to uefi
pflash mode if requested. vmtests generates and supplies the writable
nvram file that's passed to launch now. The basic uefi test currently
checks that expected files are in /sys/firmware/efi/*. Handle
older combined OVMF format found on trusty hosts as well as the newer
split firmware in Wily and newer. - 354. By Scott Moser
-
vmtest: fix regression in psuedo tests
The psuedo test class was broken by the last commit.
This is a simple fix for:
nosetests3 tests/vmtests/test_vmtests. py
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:~curtin-dev/curtin/trunk