Skip to content

Commit f646c11

Browse files
authored
Merge pull request #3 from faucetsdn/os-ken-2.6.0
Import os-ken 2.6.0 source.
2 parents da50728 + e2d7e92 commit f646c11

File tree

144 files changed

+7304
-9047
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

144 files changed

+7304
-9047
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ cover/
2424
.coverage*
2525
!.coveragerc
2626
.tox
27-
nosetests.xml
2827
.testrepository
2928
.stestr
3029
.venv

.zuul.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
- project:
22
templates:
3-
- openstack-lower-constraints-jobs
4-
- openstack-python3-yoga-jobs
3+
- openstack-python3-jobs
54
- publish-openstack-docs-pti
65
- release-notes-jobs-python3
76
- check-requirements

debian/changelog

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,47 @@
1+
python-os-ken (2.5.0-0ubuntu3) kinetic; urgency=medium
2+
3+
* d/py3dist-overrides: Add ncclient to ensure dh_python3 does not
4+
add python3-ncclient to Depends.
5+
6+
-- Corey Bryant <[email protected]> Tue, 13 Sep 2022 12:14:07 -0400
7+
8+
python-os-ken (2.5.0-0ubuntu2) kinetic; urgency=medium
9+
10+
* d/control: Move python3-ncclient to Suggests until in main.
11+
12+
-- Corey Bryant <[email protected]> Tue, 13 Sep 2022 12:02:45 -0400
13+
14+
python-os-ken (2.5.0-0ubuntu1) kinetic; urgency=medium
15+
16+
* New upstream release for OpenStack Zed.
17+
* d/control: Align (Build-)Depends with upstream.
18+
* d/rules: Switch to stestr inline with upsream.
19+
20+
-- Corey Bryant <[email protected]> Thu, 08 Sep 2022 19:44:39 -0400
21+
22+
python-os-ken (2.4.0-0ubuntu1) kinetic; urgency=medium
23+
24+
* New upstream release for OpenStack Zed.
25+
* d/control: Align (Build-)Depends with upstream.
26+
* d/control: Switch to debhelper compat 13.
27+
* d/control: Update standards version to 4.6.1.
28+
29+
-- Corey Bryant <[email protected]> Tue, 31 May 2022 15:24:15 -0400
30+
31+
python-os-ken (2.3.1-0ubuntu1) jammy; urgency=medium
32+
33+
* New upstream release for OpenStack Yoga.
34+
35+
-- Corey Bryant <[email protected]> Wed, 02 Mar 2022 14:28:04 -0500
36+
37+
python-os-ken (2.3.0-0ubuntu1) jammy; urgency=medium
38+
39+
* New upstream release for OpenStack Yoga.
40+
* d/control: Align (Build-)Depends with upstream.
41+
* d/control: Bump debhelper compat to 13.
42+
43+
-- Corey Bryant <[email protected]> Wed, 01 Dec 2021 15:29:06 -0500
44+
145
python-os-ken (2.1.0-0ubuntu1) impish; urgency=medium
246

347
* New upstream release for OpenStack Xena.

debian/control

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Build-Depends:
1212
python3-sphinx (>= 2.0.0),
1313
Build-Depends-Indep:
1414
python3-coverage,
15-
python3-eventlet (>= 0.22.0),
15+
python3-eventlet (>= 0.25.1),
1616
python3-hacking,
1717
python3-mock (>= 2.0.0),
1818
python3-msgpack (>= 1.0.0),
@@ -22,27 +22,29 @@ Build-Depends-Indep:
2222
python3-openvswitch (>= 2.8.0),
2323
python3-oslo.config (>= 1:5.1.0),
2424
python3-oslotest (>= 1:3.2.0),
25+
python3-packaging (>= 20.3),
2526
python3-pycodestyle (>= 2.0.0),
2627
python3-routes (>= 2.3.1),
2728
python3-six (>= 1.10.0),
2829
python3-stestr (>= 1.0.0),
2930
python3-subunit (>= 1.0.0),
31+
python3-testscenarios (>= 0.4),
3032
python3-testtools (>= 2.2.0),
3133
python3-tinyrpc (>= 0.6),
3234
python3-webob (>= 1:1.8.2),
33-
Standards-Version: 4.2.1
35+
Standards-Version: 4.6.1
3436
Homepage: https://docs.openstack.org/os-ken/latest/
35-
Vcs-Browser: https://git.launchpad.net/~ubuntu-openstack-dev/ubuntu/+source/python-os-ken
3637
Vcs-Git: https://git.launchpad.net/~ubuntu-openstack-dev/ubuntu/+source/python-os-ken
3738

3839
Package: python3-os-ken
3940
Architecture: all
4041
Depends:
41-
python3-eventlet (>= 0.22.0),
42+
python3-eventlet (>= 0.25.1),
4243
python3-msgpack (>= 1.0.0),
4344
python3-netaddr (>= 0.7.18),
4445
python3-openvswitch (>= 2.8.0),
4546
python3-oslo.config (>= 1:5.1.0),
47+
python3-packaging (>= 20.3),
4648
python3-pbr (>= 2.0.0),
4749
python3-routes (>= 2.3.1),
4850
python3-six (>= 1.10.0),

debian/rules

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ override_dh_auto_install:
1212

1313
override_dh_auto_test:
1414
ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
15-
for i in $(PYTHON3S) ; do \
16-
http_proxy=127.0.0.1:9 https_proxy=127.0.0.1:9 PYTHONPATH=. python$$i os_ken/tests/run_tests.py ; \
17-
done
15+
pkgos-dh_auto_test --no-py2
1816
endif
1917

2018
override_dh_python3:

doc/source/conf.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737
master_doc = 'index'
3838

3939
# General information about the project.
40-
project = u'os-ken'
41-
copyright = u'2018, OpenStack Developers'
40+
project = 'os-ken'
41+
copyright = '2018, OpenStack Developers'
4242

4343
# openstackdocstheme options
4444
openstackdocs_repo_name = 'openstack/os-ken'
@@ -77,8 +77,8 @@
7777
latex_documents = [
7878
('index',
7979
'doc-%s.tex' % project,
80-
u'%s Documentation' % project,
81-
u'OpenStack Developers', 'manual'),
80+
'%s Documentation' % project,
81+
'OpenStack Developers', 'manual'),
8282
]
8383

8484
latex_use_xindy = False

lower-constraints.txt

Lines changed: 0 additions & 136 deletions
This file was deleted.

os_ken/flags.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
global flags
1818
"""
1919

20-
from distutils.version import LooseVersion
20+
from packaging import version
2121

2222
from os_ken import cfg
2323

@@ -86,13 +86,6 @@
8686
# should be None.
8787
DEFAULT_ZSERV_FRR_VERSION = '0.0'
8888

89-
# Hack: In oslo_config.cfg.Opt, ConfigType might access __class__ attribute
90-
# for equal comparison, but on Python 2, LooseVersion does not have __class__
91-
# attribute and it causes AttributeError. So here inject __class__ attribute
92-
# into LooseVersion class.
93-
if not hasattr(LooseVersion, '__class__'):
94-
LooseVersion.__class__ = LooseVersion
95-
9689
CONF.register_cli_opts([
9790
cfg.StrOpt(
9891
'server-host', default=DEFAULT_ZSERV_HOST,
@@ -124,6 +117,6 @@
124117
help='Initial Router ID used by Zebra protocol service '
125118
'(default: %s)' % DEFAULT_ZSERV_ROUTER_ID),
126119
cfg.Opt(
127-
'frr-version', LooseVersion, default=DEFAULT_ZSERV_FRR_VERSION,
120+
'frr-version', version.Version, default=DEFAULT_ZSERV_FRR_VERSION,
128121
help='FRRouting version when integrated with FRRouting (e.g., 3.0)'),
129122
], group='zapi')

os_ken/lib/bfdlib.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@
3737
import time
3838
import random
3939

40-
import six
41-
4240
from os_ken.base import app_manager
4341
from os_ken.controller import event
4442
from os_ken.controller import ofp_event
@@ -231,7 +229,7 @@ def recv(self, bfd_pkt):
231229
BFD packet receiver.
232230
"""
233231
LOG.debug("[BFD][%s][RECV] BFD Control received: %s",
234-
hex(self._local_discr), six.binary_type(bfd_pkt))
232+
hex(self._local_discr), bytes(bfd_pkt))
235233
self._remote_discr = bfd_pkt.my_discr
236234
self._remote_state = bfd_pkt.state
237235
self._remote_demand_mode = bfd_pkt.flags & bfd.BFD_FLAG_DEMAND

os_ken/lib/mac.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,8 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17-
import six
18-
1917
from os_ken.lib import addrconv
20-
21-
if six.PY3:
22-
_ord = int
23-
else:
24-
_ord = ord
18+
import struct
2519

2620
# string representation
2721
HADDR_PATTERN = r'([0-9a-f]{2}:){5}[0-9a-f]{2}'
@@ -35,7 +29,7 @@
3529

3630

3731
def is_multicast(addr):
38-
return bool(_ord(addr[0]) & 0x01)
32+
return bool(int(addr[0]) & 0x01)
3933

4034

4135
def haddr_to_str(addr):
@@ -68,5 +62,5 @@ def haddr_to_bin(string):
6862

6963

7064
def haddr_bitand(addr, mask):
71-
return b''.join(six.int2byte(_ord(a) & _ord(m)) for (a, m)
65+
return b''.join(struct.Struct(">B").pack(int(a) & int(m)) for (a, m)
7266
in zip(addr, mask))

0 commit comments

Comments
 (0)