ifstate 1.13.4__py3-none-any.whl → 1.13.5__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {ifstate-1.13.4.dist-info → ifstate-1.13.5.dist-info}/METADATA +1 -1
- {ifstate-1.13.4.dist-info → ifstate-1.13.5.dist-info}/RECORD +9 -9
- {ifstate-1.13.4.dist-info → ifstate-1.13.5.dist-info}/WHEEL +1 -1
- libifstate/__init__.py +1 -1
- libifstate/util.py +6 -0
- libifstate/wireguard/__init__.py +8 -2
- {ifstate-1.13.4.dist-info → ifstate-1.13.5.dist-info}/entry_points.txt +0 -0
- {ifstate-1.13.4.dist-info → ifstate-1.13.5.dist-info}/licenses/LICENSE +0 -0
- {ifstate-1.13.4.dist-info → ifstate-1.13.5.dist-info}/top_level.txt +0 -0
@@ -2,11 +2,11 @@ ifstate/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
2
|
ifstate/ifstate.py,sha256=l6VxiAXWyoqj7T5J495gM5Nhn807f5pHmL8_kh1uJAc,8891
|
3
3
|
ifstate/shell.py,sha256=7_JFpi4icr9MijynDzbb0v5mxhFsng6PCC4m3uQ255A,2177
|
4
4
|
ifstate/vrrp.py,sha256=cXzQZ2v-QS56ZBS8raLM4GyCjPFtTV6tg_9Drkgul1k,5952
|
5
|
-
ifstate-1.13.
|
6
|
-
libifstate/__init__.py,sha256=
|
5
|
+
ifstate-1.13.5.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
6
|
+
libifstate/__init__.py,sha256=NfL3Ef-3vH3I56mR9MxZX3nQc3a7Asig0luDPBclokw,30950
|
7
7
|
libifstate/exception.py,sha256=5i59BZdl56J_sNJbyU9n6uHuUNJEyDOO4FJ-neDn9Ds,2608
|
8
8
|
libifstate/log.py,sha256=XVoZdwdQoWsjuupFIuG6OP0OrBpXpx7oqyAaUhQ-nJk,4553
|
9
|
-
libifstate/util.py,sha256=
|
9
|
+
libifstate/util.py,sha256=WzbGKX78iWUunnZ-v_3OREmxMiYt7vVM_QyCgTcMYow,10802
|
10
10
|
libifstate/address/__init__.py,sha256=zIGM7UWXSvoijHMD06DfS2CDtiHpiJlqDgJG7Dl1IPE,3222
|
11
11
|
libifstate/bpf/__init__.py,sha256=NVzaunTmJU2PbIQg9eWBMKpFgLh3EnD3ujNa7Yt6rNc,7699
|
12
12
|
libifstate/bpf/ctypes.py,sha256=kLZJHZlba09Vc-tbsJAcKpDwdoNO2IjlYVLCopawHmA,4274
|
@@ -27,11 +27,11 @@ libifstate/parser/yaml.py,sha256=MC0kmwqt3P45z61fb_wfUqoj0iZyhFYkdPyr0UqMSZA,141
|
|
27
27
|
libifstate/routing/__init__.py,sha256=Hmj-LHBEtVXs5tlRzY8JS_C5qdnN3alD3cIznmzQ-rY,20469
|
28
28
|
libifstate/sysctl/__init__.py,sha256=EF52CdOOkVSUFR2t21A99KlG1-PjsD4qOiceQC4eI24,3074
|
29
29
|
libifstate/tc/__init__.py,sha256=inPdampCOIr_4oKNB3awqMkW0Eh4fpPh9jvSba6sPVg,12092
|
30
|
-
libifstate/wireguard/__init__.py,sha256=
|
30
|
+
libifstate/wireguard/__init__.py,sha256=HEmGsrtIX8MEjxtMbqgzP-e2BIUicyfmcywnRE93lRQ,6579
|
31
31
|
libifstate/xdp/__init__.py,sha256=X1xhEIGng7R5d5F4KsChykT2g6H-XBRWbWABijoYDQA,7208
|
32
32
|
schema/ifstate.conf.schema.json,sha256=NOPeI8_r1jXvgAAJeBqz92ZACNvxskId3qMykj-sG7M,201292
|
33
|
-
ifstate-1.13.
|
34
|
-
ifstate-1.13.
|
35
|
-
ifstate-1.13.
|
36
|
-
ifstate-1.13.
|
37
|
-
ifstate-1.13.
|
33
|
+
ifstate-1.13.5.dist-info/METADATA,sha256=7wXC-qOpR-GJ2ENCpWYZc7-FqaqEaIc98I39apFge_E,1598
|
34
|
+
ifstate-1.13.5.dist-info/WHEEL,sha256=pxyMxgL8-pra_rKaQ4drOZAegBVuX-G_4nRHjjgWbmo,91
|
35
|
+
ifstate-1.13.5.dist-info/entry_points.txt,sha256=HF6jX7Uu_nF1Ly-J9uEPeiRapOxnM6LuHsb2y6Mt-k4,52
|
36
|
+
ifstate-1.13.5.dist-info/top_level.txt,sha256=A7peI7aKBaM69fsiSPvMbL3rzTKZZr5qDxKC-pHMGdE,19
|
37
|
+
ifstate-1.13.5.dist-info/RECORD,,
|
libifstate/__init__.py
CHANGED
libifstate/util.py
CHANGED
@@ -200,6 +200,12 @@ class NetNSExt(NetNS):
|
|
200
200
|
def __init__(self, *args, **kwargs):
|
201
201
|
super().__init__(*args, **kwargs)
|
202
202
|
|
203
|
+
# pyroute 0.9.1+
|
204
|
+
# workaround: netns property was moved into the status dict
|
205
|
+
if not hasattr(self, "netns"):
|
206
|
+
assert(hasattr(self, "status"))
|
207
|
+
self.netns = self.status["netns"]
|
208
|
+
|
203
209
|
try:
|
204
210
|
netns.pushns(self.netns)
|
205
211
|
self.__sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
|
libifstate/wireguard/__init__.py
CHANGED
@@ -56,9 +56,15 @@ class WireGuard():
|
|
56
56
|
try:
|
57
57
|
state = self.wg.get_interface(
|
58
58
|
self.iface, spill_private_key=True, spill_preshared_keys=True)
|
59
|
-
except
|
59
|
+
except TypeError as err:
|
60
|
+
# wgnlpy 0.1.5 can triggger a TypeError exception
|
61
|
+
# if the WGPEER_A_LAST_HANDSHAKE_TIME NLA does not
|
62
|
+
# return an integer
|
63
|
+
# https://github.com/argosyLabs/wgnlpy/pull/5
|
60
64
|
logger.warning('WireGuard on {} failed: {}'.format(
|
61
|
-
self.iface, err.args[
|
65
|
+
self.iface, err.args[0]))
|
66
|
+
# we cannot do anything here, but at least ifstate does not crash
|
67
|
+
# with an unhandled exception from inside wgnlpy
|
62
68
|
return
|
63
69
|
|
64
70
|
# check base settings (not the peers, yet)
|
File without changes
|
File without changes
|
File without changes
|