[ovs-git] [openvswitch/ovs] 8b35f0: xenserver: Sort vsctl port options.

GitHub noreply at github.com
Tue Jun 7 23:19:01 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 8b35f045e18a1d1c9cf10eb214adf6d6f290592d
      https://github.com/openvswitch/ovs/commit/8b35f045e18a1d1c9cf10eb214adf6d6f290592d
  Author: Joe Stringer <joe at ovn.org>
  Date:   2016-06-07 (Tue, 07 Jun 2016)

  Changed paths:
    M tests/interface-reconfigure.at
    M xenserver/opt_xensource_libexec_InterfaceReconfigureVswitch.py

  Log Message:
  -----------
  xenserver: Sort vsctl port options.

In python3, dictionaries are less likely to be sorted consistently from
one run to the next, so sort port options when outputting to provide
reliable test results.

Signed-off-by: Joe Stringer <joe at ovn.org>
Acked-by: Ben Pfaff <blp at ovn.org>


  Commit: 1ea636ec836719630cef9465bc248870a66a3b24
      https://github.com/openvswitch/ovs/commit/1ea636ec836719630cef9465bc248870a66a3b24
  Author: Joe Stringer <joe at ovn.org>
  Date:   2016-06-07 (Tue, 07 Jun 2016)

  Changed paths:
    M tests/interface-reconfigure.at
    M xenserver/opt_xensource_libexec_InterfaceReconfigure.py
    M xenserver/opt_xensource_libexec_InterfaceReconfigureVswitch.py

  Log Message:
  -----------
  xenserver: Fix string compatibility in python3.

PEP 3120 made UTF-8 the default source encoding for python3 strings;
ensure that the output for strings are consistent between python2.7 and
python3.

Signed-off-by: Joe Stringer <joe at ovn.org>
Acked-by: Ben Pfaff <blp at ovn.org>


  Commit: ba9050fa7ec06897328979bedb12f7dd518e2590
      https://github.com/openvswitch/ovs/commit/ba9050fa7ec06897328979bedb12f7dd518e2590
  Author: Joe Stringer <joe at ovn.org>
  Date:   2016-06-07 (Tue, 07 Jun 2016)

  Changed paths:
    M xenserver/opt_xensource_libexec_InterfaceReconfigure.py
    M xenserver/opt_xensource_libexec_interface-reconfigure

  Log Message:
  -----------
  xenserver: Fix list/map access for python3.

Signed-off-by: Joe Stringer <joe at ovn.org>
Acked-by: Ben Pfaff <blp at ovn.org>


  Commit: cb1e173762d69a54e7339542cd99a5784ccd85e6
      https://github.com/openvswitch/ovs/commit/cb1e173762d69a54e7339542cd99a5784ccd85e6
  Author: Joe Stringer <joe at ovn.org>
  Date:   2016-06-07 (Tue, 07 Jun 2016)

  Changed paths:
    M xenserver/opt_xensource_libexec_InterfaceReconfigure.py
    M xenserver/opt_xensource_libexec_InterfaceReconfigureVswitch.py

  Log Message:
  -----------
  xenserver: Remove tuple unpacking in lambdas.

PEP 3113 removed the use of tuple parameter unpacking in conjunction
with lambdas, replace this code with something that works in python2.7
and python3.

Signed-off-by: Joe Stringer <joe at ovn.org>
Acked-by: Ben Pfaff <blp at ovn.org>


  Commit: fc35b165519fe58d89cb019bc665745cb5e6c7ce
      https://github.com/openvswitch/ovs/commit/fc35b165519fe58d89cb019bc665745cb5e6c7ce
  Author: Joe Stringer <joe at ovn.org>
  Date:   2016-06-07 (Tue, 07 Jun 2016)

  Changed paths:
    M xenserver/opt_xensource_libexec_InterfaceReconfigure.py
    M xenserver/opt_xensource_libexec_InterfaceReconfigureVswitch.py
    M xenserver/opt_xensource_libexec_interface-reconfigure

  Log Message:
  -----------
  xenserver: Use PEP 3110 exception syntax.

This syntax is usable with both python2.7 and python3, so use it instead
of the outdated syntax.

Signed-off-by: Joe Stringer <joe at ovn.org>
Acked-by: Ben Pfaff <blp at ovn.org>


  Commit: 561258abf8323f294372346287e33d285cf2b8a4
      https://github.com/openvswitch/ovs/commit/561258abf8323f294372346287e33d285cf2b8a4
  Author: Joe Stringer <joe at ovn.org>
  Date:   2016-06-07 (Tue, 07 Jun 2016)

  Changed paths:
    M xenserver/opt_xensource_libexec_InterfaceReconfigure.py
    M xenserver/opt_xensource_libexec_interface-reconfigure

  Log Message:
  -----------
  xenserver: Remove deprecated print statement.

PEP 3105 removed the print statement in favour of a print function.
Replace usage of the old statement with equivalent functionality that
works in both python2.7 and python3.

Signed-off-by: Joe Stringer <joe at ovn.org>
Acked-by: Ben Pfaff <blp at ovn.org>


Compare: https://github.com/openvswitch/ovs/compare/6dcc2d0bdffd...561258abf832


More information about the git mailing list