ifstate 1.13.8__tar.gz → 1.13.9__tar.gz
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.8 → ifstate-1.13.9}/PKG-INFO +3 -1
- {ifstate-1.13.8 → ifstate-1.13.9}/ifstate.egg-info/PKG-INFO +3 -1
- {ifstate-1.13.8 → ifstate-1.13.9}/libifstate/__init__.py +1 -1
- {ifstate-1.13.8 → ifstate-1.13.9}/libifstate/tc/__init__.py +2 -2
- {ifstate-1.13.8 → ifstate-1.13.9}/libifstate/util.py +0 -30
- {ifstate-1.13.8 → ifstate-1.13.9}/setup.py +1 -0
- {ifstate-1.13.8 → ifstate-1.13.9}/LICENSE +0 -0
- {ifstate-1.13.8 → ifstate-1.13.9}/README.md +0 -0
- {ifstate-1.13.8 → ifstate-1.13.9}/ifstate/__init__.py +0 -0
- {ifstate-1.13.8 → ifstate-1.13.9}/ifstate/ifstate.py +0 -0
- {ifstate-1.13.8 → ifstate-1.13.9}/ifstate/shell.py +0 -0
- {ifstate-1.13.8 → ifstate-1.13.9}/ifstate/vrrp.py +0 -0
- {ifstate-1.13.8 → ifstate-1.13.9}/ifstate.egg-info/SOURCES.txt +0 -0
- {ifstate-1.13.8 → ifstate-1.13.9}/ifstate.egg-info/dependency_links.txt +0 -0
- {ifstate-1.13.8 → ifstate-1.13.9}/ifstate.egg-info/entry_points.txt +0 -0
- {ifstate-1.13.8 → ifstate-1.13.9}/ifstate.egg-info/requires.txt +0 -0
- {ifstate-1.13.8 → ifstate-1.13.9}/ifstate.egg-info/top_level.txt +0 -0
- {ifstate-1.13.8 → ifstate-1.13.9}/libifstate/address/__init__.py +0 -0
- {ifstate-1.13.8 → ifstate-1.13.9}/libifstate/bpf/__init__.py +0 -0
- {ifstate-1.13.8 → ifstate-1.13.9}/libifstate/bpf/ctypes.py +0 -0
- {ifstate-1.13.8 → ifstate-1.13.9}/libifstate/bpf/map.py +0 -0
- {ifstate-1.13.8 → ifstate-1.13.9}/libifstate/brport/__init__.py +0 -0
- {ifstate-1.13.8 → ifstate-1.13.9}/libifstate/exception.py +0 -0
- {ifstate-1.13.8 → ifstate-1.13.9}/libifstate/fdb/__init__.py +0 -0
- {ifstate-1.13.8 → ifstate-1.13.9}/libifstate/link/__init__.py +0 -0
- {ifstate-1.13.8 → ifstate-1.13.9}/libifstate/link/base.py +0 -0
- {ifstate-1.13.8 → ifstate-1.13.9}/libifstate/link/dsa.py +0 -0
- {ifstate-1.13.8 → ifstate-1.13.9}/libifstate/link/physical.py +0 -0
- {ifstate-1.13.8 → ifstate-1.13.9}/libifstate/link/tun.py +0 -0
- {ifstate-1.13.8 → ifstate-1.13.9}/libifstate/link/veth.py +0 -0
- {ifstate-1.13.8 → ifstate-1.13.9}/libifstate/log.py +0 -0
- {ifstate-1.13.8 → ifstate-1.13.9}/libifstate/neighbour/__init__.py +0 -0
- {ifstate-1.13.8 → ifstate-1.13.9}/libifstate/netns/__init__.py +0 -0
- {ifstate-1.13.8 → ifstate-1.13.9}/libifstate/parser/__init__.py +0 -0
- {ifstate-1.13.8 → ifstate-1.13.9}/libifstate/parser/base.py +0 -0
- {ifstate-1.13.8 → ifstate-1.13.9}/libifstate/parser/yaml.py +0 -0
- {ifstate-1.13.8 → ifstate-1.13.9}/libifstate/routing/__init__.py +0 -0
- {ifstate-1.13.8 → ifstate-1.13.9}/libifstate/sysctl/__init__.py +0 -0
- {ifstate-1.13.8 → ifstate-1.13.9}/libifstate/wireguard/__init__.py +0 -0
- {ifstate-1.13.8 → ifstate-1.13.9}/libifstate/xdp/__init__.py +0 -0
- {ifstate-1.13.8 → ifstate-1.13.9}/schema/ifstate.conf.schema.json +0 -0
- {ifstate-1.13.8 → ifstate-1.13.9}/setup.cfg +0 -0
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ifstate
|
|
3
|
-
Version: 1.13.
|
|
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
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ifstate
|
|
3
|
-
Version: 1.13.
|
|
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
|
|
@@ -199,7 +199,7 @@ class TC():
|
|
|
199
199
|
"parent": parent,
|
|
200
200
|
}
|
|
201
201
|
try:
|
|
202
|
-
self.netns.ipr.
|
|
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.
|
|
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:
|
|
@@ -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))
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|