Merge ~raharper/cloud-init:add-netplan-bridge-stp into cloud-init:master
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Approved by: | Scott Moser on 2017-10-05 | ||||
| Approved revision: | 1f080197c136db43edeb6923cb4c1656123aa31e | ||||
| Merged at revision: | 1f080197c136db43edeb6923cb4c1656123aa31e | ||||
| Proposed branch: | ~raharper/cloud-init:add-netplan-bridge-stp | ||||
| Merge into: | cloud-init:master | ||||
| Diff against target: |
110 lines (+24/-6) 4 files modified
cloudinit/net/eni.py (+3/-0) cloudinit/net/netplan.py (+3/-2) cloudinit/net/network_state.py (+15/-2) tests/unittests/test_net.py (+3/-2) |
||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Server Team CI bot | continuous-integration | Approve on 2017-10-05 | |
| Scott Moser | 2017-10-03 | Approve on 2017-10-05 | |
|
Review via email:
|
|||
Description of the Change
network: bridge_stp value not always correct
Update network_state to store the bridge_stp value as a boolean.
The various renderers then can map the boolean value to the correct
output as needed; eni uses 'on/off', sysconfig uses 'yes/no' and
netplan will use the boolean directly.
Update unittest values for sysconfig and netplan. Both contained
the network_state string value which resulted in not correctly enable/disable
STP in the target system.
Update network_state comment (fd -> forward-delay, add stp as boolean) on
bridge commands to match the expected format of a netplan bridge command.
LP: #1721157
| Scott Moser (smoser) wrote : | # |
My only comment is whether we have to support 'off' and 'on' rather than just true Boolean values. Wouldn't it be better to centralize that fix/conversion in network State?
Give an answer. Think about it. I am fine to defer to you and/or Chad judgement.
Thanks
| Ryan Harper (raharper) wrote : | # |
The right thing to do is establish a boolean in state, and update
netplan/
renderer.
Eni, for example wants 'on' or 'off'
Netplan wants the boolean
AFAICT sysconfig likes the 'on' or 'off' value currently present.
On Tue, Oct 3, 2017 at 8:59 PM, Scott Moser <email address hidden> wrote:
> Review: Approve
>
> My only comment is whether we have to support 'off' and 'on' rather than
> just true Boolean values. Wouldn't it be better to centralize that
> fix/conversion in network State?
>
> Give an answer. Think about it. I am fine to defer to you and/or Chad
> judgement.
>
> Thanks
> --
> https:/
> cloud-init/
> You are the owner of ~raharper/
>
PASSED: Continuous integration, rev:1b60f4db30a
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:
https:/
| Ryan Harper (raharper) wrote : | # |
Will fix up the one and update.
PASSED: Continuous integration, rev:04216a888b9
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:
https:/
PASSED: Continuous integration, rev:e206522d34e
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:
https:/
| Scott Moser (smoser) wrote : | # |
please mention
in commit message 'forward-delay'
PASSED: Continuous integration, rev:1f080197c13
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:
https:/


PASSED: Continuous integration, rev:b7a9a86e1bd 37102388298ee56 7391c21e42876a /jenkins. ubuntu. com/server/ job/cloud- init-ci/ 377/
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/ 377/rebuild
https:/