ifstate 2.0.0rc5__py3-none-any.whl → 2.0.0rc6__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.0rc5.dist-info → ifstate-2.0.0rc6.dist-info}/METADATA +1 -1
- {ifstate-2.0.0rc5.dist-info → ifstate-2.0.0rc6.dist-info}/RECORD +9 -9
- libifstate/__init__.py +2 -2
- libifstate/parser/base.py +1 -1
- libifstate/sysctl/__init__.py +4 -1
- {ifstate-2.0.0rc5.dist-info → ifstate-2.0.0rc6.dist-info}/WHEEL +0 -0
- {ifstate-2.0.0rc5.dist-info → ifstate-2.0.0rc6.dist-info}/entry_points.txt +0 -0
- {ifstate-2.0.0rc5.dist-info → ifstate-2.0.0rc6.dist-info}/licenses/LICENSE +0 -0
- {ifstate-2.0.0rc5.dist-info → ifstate-2.0.0rc6.dist-info}/top_level.txt +0 -0
@@ -2,8 +2,8 @@ ifstate/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
2
|
ifstate/ifstate.py,sha256=hmc_AWohcYVzWHU7vooWey0HDqZQOs6Yq8YZAMZBCgo,9304
|
3
3
|
ifstate/shell.py,sha256=7_JFpi4icr9MijynDzbb0v5mxhFsng6PCC4m3uQ255A,2177
|
4
4
|
ifstate/vrrp.py,sha256=FJ9b1eJseTtZFfknHU-xV68Qz7cPrRrc5PTcjUVj-fY,5953
|
5
|
-
ifstate-2.0.
|
6
|
-
libifstate/__init__.py,sha256=
|
5
|
+
ifstate-2.0.0rc6.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
6
|
+
libifstate/__init__.py,sha256=sJRqKeltu3k9_X-uPS4yc1_aw0KR_bDTpxoBI2p0BDM,34056
|
7
7
|
libifstate/exception.py,sha256=NmKqD9O8dRWBgO__Pt0_wGSR5GWZ1RHXZZEUI3ArVLo,2360
|
8
8
|
libifstate/log.py,sha256=rG0ISWyeGGlC_jRREoSpkdySc5EmyhOQIgSfvRqlaZA,4651
|
9
9
|
libifstate/util.py,sha256=DqYyFzNqRceJxxGqTg94gT8OTHQQ2gZxQOo5Gzx6-6s,11555
|
@@ -24,16 +24,16 @@ libifstate/link/veth.py,sha256=Sv5WZMMsefYFz9I0BQSZyKytCQYxv0vjwAnB7FYHR1A,2283
|
|
24
24
|
libifstate/neighbour/__init__.py,sha256=FJJpbJvqnxvOEii6QDMYzW5jQDEbiEy71GQOEbqaS48,2463
|
25
25
|
libifstate/netns/__init__.py,sha256=5Ak4vHU5UvdSYPFIQ8i8VMba2luyUeSpYAtRXxdTGPE,10287
|
26
26
|
libifstate/parser/__init__.py,sha256=uzv5U-6RPy-SSIyxR6H_F0SvAOQQF8x5ygErpUhsa7Y,109
|
27
|
-
libifstate/parser/base.py,sha256=
|
27
|
+
libifstate/parser/base.py,sha256=v0S_R_aMZBdHJPI3zdelv5G0Xha-pUV2DRdmxhD7390,6624
|
28
28
|
libifstate/parser/yaml.py,sha256=MC0kmwqt3P45z61fb_wfUqoj0iZyhFYkdPyr0UqMSZA,1415
|
29
29
|
libifstate/routing/__init__.py,sha256=O4lbaCJvLgx-iQUa0WDgRmSPR4AKvveqPgxxb4HwYQ4,25305
|
30
30
|
libifstate/schema/2/ifstate.conf.schema.json,sha256=hVf0fduVV09uw3ZphWWwGpeQ7nL5z1aLTHUEemn34wc,221185
|
31
|
-
libifstate/sysctl/__init__.py,sha256=
|
31
|
+
libifstate/sysctl/__init__.py,sha256=_QNmH0CirbBy8VAupTm6UhIhB88fGWqUy9TnfmS0j5I,3637
|
32
32
|
libifstate/tc/__init__.py,sha256=T8LEBxiHZH4sayPn9lK5hK8eB8dskuw6-kw81W_aMWU,12097
|
33
33
|
libifstate/wireguard/__init__.py,sha256=VSn3PzQXwZeRV1qf5nOc_RbeePQlXu8FUh2Lg356-ZA,8869
|
34
34
|
libifstate/xdp/__init__.py,sha256=X1xhEIGng7R5d5F4KsChykT2g6H-XBRWbWABijoYDQA,7208
|
35
|
-
ifstate-2.0.
|
36
|
-
ifstate-2.0.
|
37
|
-
ifstate-2.0.
|
38
|
-
ifstate-2.0.
|
39
|
-
ifstate-2.0.
|
35
|
+
ifstate-2.0.0rc6.dist-info/METADATA,sha256=_TQXDh5XJSUFCPgE1D4O11eyO6P8NBoaQsB6GwTc49M,1607
|
36
|
+
ifstate-2.0.0rc6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
37
|
+
ifstate-2.0.0rc6.dist-info/entry_points.txt,sha256=HF6jX7Uu_nF1Ly-J9uEPeiRapOxnM6LuHsb2y6Mt-k4,52
|
38
|
+
ifstate-2.0.0rc6.dist-info/top_level.txt,sha256=A7peI7aKBaM69fsiSPvMbL3rzTKZZr5qDxKC-pHMGdE,19
|
39
|
+
ifstate-2.0.0rc6.dist-info/RECORD,,
|
libifstate/__init__.py
CHANGED
@@ -54,7 +54,7 @@ import json
|
|
54
54
|
import errno
|
55
55
|
import logging
|
56
56
|
|
57
|
-
__version__ = "2.0.
|
57
|
+
__version__ = "2.0.0rc6"
|
58
58
|
|
59
59
|
class IfState():
|
60
60
|
def __init__(self):
|
@@ -90,7 +90,7 @@ class IfState():
|
|
90
90
|
if self.features['schema']:
|
91
91
|
# check config schema
|
92
92
|
schema = json.loads(pkgutil.get_data(
|
93
|
-
"libifstate", "
|
93
|
+
"libifstate", "schema/{}/ifstate.conf.schema.json".format(__version__.split('.')[0])))
|
94
94
|
try:
|
95
95
|
validate(ifstates, schema, format_checker=FormatChecker())
|
96
96
|
except ValidationError as ex:
|
libifstate/parser/base.py
CHANGED
@@ -144,7 +144,7 @@ class Parser(ABC):
|
|
144
144
|
return a
|
145
145
|
|
146
146
|
def _update_lo(self, cfg):
|
147
|
-
if 'interfaces' in cfg:
|
147
|
+
if 'interfaces' in cfg and isinstance(cfg['interfaces'], dict):
|
148
148
|
if 'lo' in cfg['interfaces']:
|
149
149
|
cfg['interfaces']['lo'] = self.merge(
|
150
150
|
deepcopy(Parser._default_lo_link), cfg['interfaces']['lo'])
|
libifstate/sysctl/__init__.py
CHANGED
@@ -26,7 +26,10 @@ class Sysctl():
|
|
26
26
|
|
27
27
|
def add(self, iface, sysctl):
|
28
28
|
# deeply apply changes to the default/previously defined values
|
29
|
-
|
29
|
+
if iface in self.sysctls:
|
30
|
+
self.sysctls[iface] = deep_update(self.sysctls[iface], sysctl)
|
31
|
+
else:
|
32
|
+
self.sysctls[iface] = sysctl
|
30
33
|
|
31
34
|
def add_global(self, proto, sysctl):
|
32
35
|
self.globals[proto] = sysctl
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|