ifstate 1.13.8__py3-none-any.whl → 1.13.9__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.
@@ -1,11 +1,12 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ifstate
3
- Version: 1.13.8
3
+ Version: 1.13.9
4
4
  Summary: Manage host interface settings in a declarative manner
5
5
  Home-page: https://ifstate.net/
6
6
  Author: Thomas Liske
7
7
  Author-email: thomas@fiasko-nw.net
8
8
  License: GPL3+
9
+ Requires-Python: >=3.10
9
10
  Description-Content-Type: text/markdown
10
11
  License-File: LICENSE
11
12
  Requires-Dist: jsonschema
@@ -25,6 +26,7 @@ Dynamic: license
25
26
  Dynamic: license-file
26
27
  Dynamic: provides-extra
27
28
  Dynamic: requires-dist
29
+ Dynamic: requires-python
28
30
  Dynamic: summary
29
31
 
30
32
  # IfState
@@ -2,11 +2,11 @@ ifstate/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  ifstate/ifstate.py,sha256=am8x-ONL1QziOuTfD3Fmr5wVg_Mt2sH9Pi9DTn6YqYY,8921
3
3
  ifstate/shell.py,sha256=7_JFpi4icr9MijynDzbb0v5mxhFsng6PCC4m3uQ255A,2177
4
4
  ifstate/vrrp.py,sha256=FJ9b1eJseTtZFfknHU-xV68Qz7cPrRrc5PTcjUVj-fY,5953
5
- ifstate-1.13.8.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
6
- libifstate/__init__.py,sha256=9ovYpLf4AVTDNWFru4o4DaR60SQW0tXCrNMXLuoTPpU,31245
5
+ ifstate-1.13.9.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
6
+ libifstate/__init__.py,sha256=HZ4xc7Gp4vFA_iwIkUnWAXUK8zUfHKRazvklWG7QJaE,31245
7
7
  libifstate/exception.py,sha256=QgG4hdP1KYbdVBNfy-bT59aCcYF0IuFdEwZrY3QrwTc,2688
8
8
  libifstate/log.py,sha256=rG0ISWyeGGlC_jRREoSpkdySc5EmyhOQIgSfvRqlaZA,4651
9
- libifstate/util.py,sha256=WzbGKX78iWUunnZ-v_3OREmxMiYt7vVM_QyCgTcMYow,10802
9
+ libifstate/util.py,sha256=Cc8Ai_qP_7xnMX9KGyx3YqVdM7x9y0210c52DD2l-D0,9992
10
10
  libifstate/address/__init__.py,sha256=SobrZ9e2ItrmEidnKPBhUMitRDdTEajbkU9Rkmtx-gQ,3165
11
11
  libifstate/bpf/__init__.py,sha256=NVzaunTmJU2PbIQg9eWBMKpFgLh3EnD3ujNa7Yt6rNc,7699
12
12
  libifstate/bpf/ctypes.py,sha256=kLZJHZlba09Vc-tbsJAcKpDwdoNO2IjlYVLCopawHmA,4274
@@ -26,12 +26,12 @@ libifstate/parser/base.py,sha256=VFAo05O3tiKtI381LVUMYfsDTseMKoQGTfkgnEkm3H4,477
26
26
  libifstate/parser/yaml.py,sha256=MC0kmwqt3P45z61fb_wfUqoj0iZyhFYkdPyr0UqMSZA,1415
27
27
  libifstate/routing/__init__.py,sha256=5kcIzWpM2v-T_ndxFO5qwF8hla-Fqh2yP1QtmohWZl0,22777
28
28
  libifstate/sysctl/__init__.py,sha256=EF52CdOOkVSUFR2t21A99KlG1-PjsD4qOiceQC4eI24,3074
29
- libifstate/tc/__init__.py,sha256=T8LEBxiHZH4sayPn9lK5hK8eB8dskuw6-kw81W_aMWU,12097
29
+ libifstate/tc/__init__.py,sha256=48qZo1poc4v7KKiNpUsHVuRBQyu92LaNcEMtRHjDjt8,12093
30
30
  libifstate/wireguard/__init__.py,sha256=RPJdMdp7Uv3Kk_koGH8bu0lVQaKlJQwkyobGFqtmp0E,6839
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.8.dist-info/METADATA,sha256=dNYDgkvVdmbpS-A7CdZnwhmz-RXww8btSS8YunJ_WUg,1598
34
- ifstate-1.13.8.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
35
- ifstate-1.13.8.dist-info/entry_points.txt,sha256=HF6jX7Uu_nF1Ly-J9uEPeiRapOxnM6LuHsb2y6Mt-k4,52
36
- ifstate-1.13.8.dist-info/top_level.txt,sha256=A7peI7aKBaM69fsiSPvMbL3rzTKZZr5qDxKC-pHMGdE,19
37
- ifstate-1.13.8.dist-info/RECORD,,
33
+ ifstate-1.13.9.dist-info/METADATA,sha256=jlPktVNBexb_uvECx2unQqI6nm43ZZUROWFqy8_o-Rw,1647
34
+ ifstate-1.13.9.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
35
+ ifstate-1.13.9.dist-info/entry_points.txt,sha256=HF6jX7Uu_nF1Ly-J9uEPeiRapOxnM6LuHsb2y6Mt-k4,52
36
+ ifstate-1.13.9.dist-info/top_level.txt,sha256=A7peI7aKBaM69fsiSPvMbL3rzTKZZr5qDxKC-pHMGdE,19
37
+ ifstate-1.13.9.dist-info/RECORD,,
libifstate/__init__.py CHANGED
@@ -48,7 +48,7 @@ import json
48
48
  import errno
49
49
  import logging
50
50
 
51
- __version__ = "1.13.8"
51
+ __version__ = "1.13.9"
52
52
 
53
53
 
54
54
  class IfState():
libifstate/tc/__init__.py CHANGED
@@ -199,7 +199,7 @@ class TC():
199
199
  "parent": parent,
200
200
  }
201
201
  try:
202
- self.netns.ipr.del_filter_by_info(**opts)
202
+ self.netns.ipr.tc("del-filter", **opts)
203
203
  except Exception as err:
204
204
  if not isinstance(err, netlinkerror_classes):
205
205
  raise
@@ -241,7 +241,7 @@ class TC():
241
241
  "info": tc_filter["prio"] << 16,
242
242
  "parent": parent,
243
243
  }
244
- self.netns.ipr.del_filter_by_info(**opts)
244
+ self.netns.ipr.tc("del-filter", **opts)
245
245
  self.netns.ipr.tc("add-filter", **tc_filter)
246
246
 
247
247
  except Exception as err:
libifstate/util.py CHANGED
@@ -82,21 +82,6 @@ class IPRouteExt(IPRoute):
82
82
  # os.register_at_fork(before=fork_before, after_in_parent=fork_parent, after_in_child=fork_child)
83
83
 
84
84
 
85
- def del_filter_by_info(self, index=0, handle=0, info=0, parent=0):
86
- msg = tcmsg()
87
- msg['index'] = index
88
- msg['handle'] = handle
89
- msg['info'] = info
90
- if parent != 0:
91
- msg['parent'] = parent
92
-
93
- return tuple(self.nlm_request(
94
- msg,
95
- msg_type=RTM_DELTFILTER,
96
- msg_flags=NLM_F_REQUEST |
97
- NLM_F_ACK
98
- ))
99
-
100
85
  def get_businfo(self, ifname):
101
86
  data = array.array("B", struct.pack(
102
87
  "I", ETHTOOL_GDRVINFO))
@@ -212,21 +197,6 @@ class NetNSExt(NetNS):
212
197
  finally:
213
198
  netns.popns()
214
199
 
215
- def del_filter_by_info(self, index=0, handle=0, info=0, parent=0):
216
- msg = tcmsg()
217
- msg['index'] = index
218
- msg['handle'] = handle
219
- msg['info'] = info
220
- if parent != 0:
221
- msg['parent'] = parent
222
-
223
- return tuple(self.nlm_request(
224
- msg,
225
- msg_type=RTM_DELTFILTER,
226
- msg_flags=NLM_F_REQUEST |
227
- NLM_F_ACK
228
- ))
229
-
230
200
  def get_businfo(self, ifname):
231
201
  data = array.array("B", struct.pack(
232
202
  "I", ETHTOOL_GDRVINFO))