Merge ~raharper/cloud-init:sysconfig-handle-global-static-routes into cloud-init:master
Status: | Work in progress |
---|---|
Proposed branch: | ~raharper/cloud-init:sysconfig-handle-global-static-routes |
Merge into: | cloud-init:master |
Diff against target: |
151 lines (+58/-0) 2 files modified
cloudinit/net/sysconfig.py (+22/-0) tests/unittests/test_net.py (+36/-0) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Server Team CI bot | continuous-integration | Approve | |
cloud-init Commiters | Pending | ||
Review via email: mp+342102@code.launchpad.net |
Commit message
net/sysconfig: handle global static routes
Cloud-init network-config V1 format allows configuration of "global"
static routes which are not directly associated with any interface
in particular. These routes were not rendered under sysconfig which
generally prefers routes to be part of an interface subnet configuration.
If the configuration includes global routes, sysconfig will now render
these static routes to /etc/sysconfig/
parameter indicating it will be active for any network interface.
This change does not affect existing subnet routes which continue to
be rendered into /etc/sysconfig/
route6-$iface as needed.
PASSED: Continuous integration, rev:8fe387770dd a040419468007f5 f279f502ad32c1 /jenkins. ubuntu. com/server/ job/cloud- init-ci/ 930/
https:/
Executed test runs:
SUCCESS: Checkout
SUCCESS: Unit & Style Tests
SUCCESS: Ubuntu LTS: Build
SUCCESS: Ubuntu LTS: Integration
SUCCESS: MAAS Compatability Testing
IN_PROGRESS: Declarative: Post Actions
Click here to trigger a rebuild: /jenkins. ubuntu. com/server/ job/cloud- init-ci/ 930/rebuild
https:/