Merge lp:~tribaal/landscape-client/fix-1130130-backwards-incompatible-messgae into lp:~landscape/landscape-client/trunk
Proposed by
Chris Glass
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Chris Glass | ||||
Approved revision: | 632 | ||||
Merged at revision: | 627 | ||||
Proposed branch: | lp:~tribaal/landscape-client/fix-1130130-backwards-incompatible-messgae | ||||
Merge into: | lp:~landscape/landscape-client/trunk | ||||
Diff against target: |
253 lines (+60/-40) 6 files modified
landscape/lib/network.py (+15/-7) landscape/lib/tests/test_network.py (+14/-11) landscape/message_schemas.py (+11/-3) landscape/monitor/networkdevice.py (+16/-2) landscape/monitor/tests/test_networkdevice.py (+2/-16) landscape/schema.py (+2/-1) |
||||
To merge this branch: | bzr merge lp:~tribaal/landscape-client/fix-1130130-backwards-incompatible-messgae | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Thomas Herve (community) | Approve | ||
Alberto Donato (community) | Approve | ||
Review via email: mp+149623@code.launchpad.net |
Description of the change
This branch removes the previously introduced "speed" member of the "network-device" message, and adds another top-level key instead, called "device-speeds" that contains the interface, the speed, and a newly introduced "duplex" flag (to know if a link is in duplex mode or not).
Since we have logic in place to filter unknown top-level keys, landscape servers should not wedge computers even if they are older that the client (i.e. if they don't have the schema introduced bu this branch).
The new key is marked optional for the opposing case - a new server will not wedge computers with an older version of the client.
To post a comment you must log in.
Look good! +1
#1: interfaces( sock):
+ for interface in get_active_
+ if interface in skipped_interfaces:
+ continue
+ if skip_vlan and "." in interface:
+ continue
+ if skip_alias and ":" in interface:
+ continue
since the same logic is present in get_active_ device_ info, it'd be nice to extract it in a method, such as
+ for interface in get_active_ interfaces( sock): interface, skipped_interfaces, skip_vlan, skip_alias):
+ if skip_interface(
+ continue