ifstate 2.0.0rc2__py3-none-any.whl → 2.0.0rc3__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-2.0.0rc2.dist-info → ifstate-2.0.0rc3.dist-info}/METADATA +1 -1
- {ifstate-2.0.0rc2.dist-info → ifstate-2.0.0rc3.dist-info}/RECORD +14 -14
- libifstate/__init__.py +1 -1
- libifstate/exception.py +1 -9
- libifstate/netns/__init__.py +1 -1
- libifstate/routing/__init__.py +1 -1
- libifstate/sysctl/__init__.py +7 -1
- libifstate/util.py +1 -1
- libifstate/wireguard/__init__.py +0 -4
- schema/2/ifstate.conf.schema.json +1 -0
- {ifstate-2.0.0rc2.dist-info → ifstate-2.0.0rc3.dist-info}/WHEEL +0 -0
- {ifstate-2.0.0rc2.dist-info → ifstate-2.0.0rc3.dist-info}/entry_points.txt +0 -0
- {ifstate-2.0.0rc2.dist-info → ifstate-2.0.0rc3.dist-info}/licenses/LICENSE +0 -0
- {ifstate-2.0.0rc2.dist-info → ifstate-2.0.0rc3.dist-info}/top_level.txt +0 -0
@@ -3,11 +3,11 @@ ifstate/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
3
|
ifstate/ifstate.py,sha256=ioiM9xgVWdrpTpK_UxJdaJFlmpFM9R-2_d5pq9_Hepo,9272
|
4
4
|
ifstate/shell.py,sha256=7_JFpi4icr9MijynDzbb0v5mxhFsng6PCC4m3uQ255A,2177
|
5
5
|
ifstate/vrrp.py,sha256=FJ9b1eJseTtZFfknHU-xV68Qz7cPrRrc5PTcjUVj-fY,5953
|
6
|
-
ifstate-2.0.
|
7
|
-
libifstate/__init__.py,sha256=
|
8
|
-
libifstate/exception.py,sha256=
|
6
|
+
ifstate-2.0.0rc3.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
7
|
+
libifstate/__init__.py,sha256=iDV2VI11gPAIDrTXKqkWbo4B9bRcokiY3Fzyu440ayg,33194
|
8
|
+
libifstate/exception.py,sha256=jhLN46mqlyGNEz7lmc0K2d3SoZJtKzEVyPduPh22oC0,2280
|
9
9
|
libifstate/log.py,sha256=XVoZdwdQoWsjuupFIuG6OP0OrBpXpx7oqyAaUhQ-nJk,4553
|
10
|
-
libifstate/util.py,sha256=
|
10
|
+
libifstate/util.py,sha256=raYAaRy15JQNUbU3_4GchYV_PkaCvWR_8xjt7NTzMYw,11335
|
11
11
|
libifstate/address/__init__.py,sha256=zIGM7UWXSvoijHMD06DfS2CDtiHpiJlqDgJG7Dl1IPE,3222
|
12
12
|
libifstate/bpf/__init__.py,sha256=NVzaunTmJU2PbIQg9eWBMKpFgLh3EnD3ujNa7Yt6rNc,7699
|
13
13
|
libifstate/bpf/ctypes.py,sha256=kLZJHZlba09Vc-tbsJAcKpDwdoNO2IjlYVLCopawHmA,4274
|
@@ -21,18 +21,18 @@ libifstate/link/physical.py,sha256=ectyXVchCHqWZR8qsjAD9667wjQbGW1OUKLQheTUFys,5
|
|
21
21
|
libifstate/link/tun.py,sha256=SWkscSAgIk3DWFPWHo9Cmokhj88rO1_sR7Z0Qlg2xGA,993
|
22
22
|
libifstate/link/veth.py,sha256=Sv5WZMMsefYFz9I0BQSZyKytCQYxv0vjwAnB7FYHR1A,2283
|
23
23
|
libifstate/neighbour/__init__.py,sha256=FJJpbJvqnxvOEii6QDMYzW5jQDEbiEy71GQOEbqaS48,2463
|
24
|
-
libifstate/netns/__init__.py,sha256=
|
24
|
+
libifstate/netns/__init__.py,sha256=ptSIVld_BNXPE6f4SiIPVdYOE1sgprf5-ZhR-L_3BPE,10145
|
25
25
|
libifstate/parser/__init__.py,sha256=byz1W0G7UewVc5FFie-ti3UZjGK3-75wHIaOeq0oySQ,88
|
26
26
|
libifstate/parser/base.py,sha256=EV7uJYdVke3a2ghkUZ6ZeaIeVQAPVS4rFnYhebXeQm0,5932
|
27
27
|
libifstate/parser/yaml.py,sha256=MC0kmwqt3P45z61fb_wfUqoj0iZyhFYkdPyr0UqMSZA,1415
|
28
|
-
libifstate/routing/__init__.py,sha256=
|
29
|
-
libifstate/sysctl/__init__.py,sha256=
|
28
|
+
libifstate/routing/__init__.py,sha256=O4lbaCJvLgx-iQUa0WDgRmSPR4AKvveqPgxxb4HwYQ4,25305
|
29
|
+
libifstate/sysctl/__init__.py,sha256=u1VJ1aPXeGCl3rwj3g0bDbz6k5k9YS5hQIsgFOBokpk,3202
|
30
30
|
libifstate/tc/__init__.py,sha256=inPdampCOIr_4oKNB3awqMkW0Eh4fpPh9jvSba6sPVg,12092
|
31
|
-
libifstate/wireguard/__init__.py,sha256=
|
31
|
+
libifstate/wireguard/__init__.py,sha256=dXILLIuahBCkX2ONhre28SzJrVNksbjOICs-cSGGaRg,8625
|
32
32
|
libifstate/xdp/__init__.py,sha256=X1xhEIGng7R5d5F4KsChykT2g6H-XBRWbWABijoYDQA,7208
|
33
|
-
schema/2/ifstate.conf.schema.json,sha256=
|
34
|
-
ifstate-2.0.
|
35
|
-
ifstate-2.0.
|
36
|
-
ifstate-2.0.
|
37
|
-
ifstate-2.0.
|
38
|
-
ifstate-2.0.
|
33
|
+
schema/2/ifstate.conf.schema.json,sha256=ukCafLPfHCXpk44u5RMMhWIh9JoIAt2j_3idysAVHaQ,218763
|
34
|
+
ifstate-2.0.0rc3.dist-info/METADATA,sha256=hdygdnfWvpggPIMQXwGSHPovg8Xt8VzsE-gAlPf1y-Y,1607
|
35
|
+
ifstate-2.0.0rc3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
36
|
+
ifstate-2.0.0rc3.dist-info/entry_points.txt,sha256=HF6jX7Uu_nF1Ly-J9uEPeiRapOxnM6LuHsb2y6Mt-k4,52
|
37
|
+
ifstate-2.0.0rc3.dist-info/top_level.txt,sha256=A7peI7aKBaM69fsiSPvMbL3rzTKZZr5qDxKC-pHMGdE,19
|
38
|
+
ifstate-2.0.0rc3.dist-info/RECORD,,
|
libifstate/__init__.py
CHANGED
libifstate/exception.py
CHANGED
@@ -1,15 +1,7 @@
|
|
1
|
-
from pyroute2
|
1
|
+
from pyroute2 import NetlinkError
|
2
2
|
from libifstate.util import logger
|
3
3
|
|
4
|
-
# pyroute2.minimal exceptions might be broken
|
5
|
-
# => workaround for pyroute2 #845 #847
|
6
4
|
netlinkerror_classes = (NetlinkError)
|
7
|
-
try:
|
8
|
-
from pr2modules.netlink.exceptions import NetlinkError as Pr2mNetlinkError
|
9
|
-
netlinkerror_classes = (NetlinkError, Pr2mNetlinkError)
|
10
|
-
except ModuleNotFoundError:
|
11
|
-
# required for pyroute2 before 0.6.0
|
12
|
-
pass
|
13
5
|
|
14
6
|
class ExceptionCollector():
|
15
7
|
def __init__(self, ifname):
|
libifstate/netns/__init__.py
CHANGED
libifstate/routing/__init__.py
CHANGED
@@ -202,7 +202,7 @@ class RTLookup():
|
|
202
202
|
self.str2id = {}
|
203
203
|
self.id2str = {}
|
204
204
|
|
205
|
-
for basedir in ['/usr/share/iproute2', '/
|
205
|
+
for basedir in ['/usr/share/iproute2', '/etc/iproute2']:
|
206
206
|
fn = os.path.join(basedir, name)
|
207
207
|
try:
|
208
208
|
with open(fn, 'r') as fp:
|
libifstate/sysctl/__init__.py
CHANGED
libifstate/util.py
CHANGED
@@ -3,7 +3,7 @@ from libifstate.log import logger, IfStateLogging
|
|
3
3
|
import pyroute2
|
4
4
|
from pyroute2 import IPRoute, IW, NetNS
|
5
5
|
|
6
|
-
from pyroute2
|
6
|
+
from pyroute2 import NetlinkError
|
7
7
|
from pyroute2.netlink.rtnl.tcmsg import tcmsg
|
8
8
|
from pyroute2.netlink.rtnl import RTM_DELTFILTER, RTM_NEWNSID
|
9
9
|
from pyroute2.netlink.rtnl.nsidmsg import nsidmsg
|
libifstate/wireguard/__init__.py
CHANGED
@@ -206,14 +206,10 @@ class WireGuard():
|
|
206
206
|
|
207
207
|
for key in ['private_key', 'listen_port', 'fwmark']:
|
208
208
|
value = getattr(state, key)
|
209
|
-
print("{} => {}".format(key, value))
|
210
209
|
_dump_values(config['wireguard'], key, value)
|
211
210
|
|
212
211
|
for peer in state.peers:
|
213
212
|
config['wireguard']['peers'][str(peer)] = {}
|
214
|
-
print(state.peers[peer].endpoint)
|
215
|
-
print(type(state.peers[peer].endpoint))
|
216
|
-
print("---")
|
217
213
|
for key in ['preshared_key', 'endpoint', 'persistent_keepalive_interval', 'allowedips']:
|
218
214
|
value = getattr(state.peers[peer], key)
|
219
215
|
_dump_values(config['wireguard']['peers'][str(peer)], key, value)
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|