We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92795fe commit 1a94f63Copy full SHA for 1a94f63
pythonbpf/maps.py
@@ -10,5 +10,15 @@ def lookup(self, key):
10
return self.entries[key]
11
else:
12
return None
13
-
14
- # add other supported map functions here
+
+ def delete(self, key):
15
+ if key in self.entries:
16
+ del self.entries[key]
17
+ else:
18
+ raise KeyError(f"Key {key} not found in map")
19
20
+ def update(self, key, value):
21
22
+ self.entries[key] = value
23
24
0 commit comments