~landscape/landscape-client/trunk

Viewing all changes in revision 957.

  • Committer: 🤖 Landscape Builder
  • Author(s): Steffen Allner
  • Date: 2017-03-15 07:57:57 UTC
  • mfrom: (925.20.12 py3-network)
  • Revision ID: _landscape_builder-20170315075757-el2nfzsd7xthmdr6
Merge py3-network [f=] [r=danilo,nilo,landscape-builder] [a=Gocept]
Support both python 2 and 3 in the landscape.lib.network module. This module mostly consists of methods used in this model to retrieve information about network devices. To achieve this, calls to socket methods are used, which require bytes as input. To maintain compatibility with the code using `get_active_device_info` the result of this function still consists of strings in Python 3 but the internal methods now explicitly work on bytes. The `skipped_interfaces` are still a tuple of strings to maintain signature stability.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: