Update .gitignore, fix syntax in LibreQoS.py

* Add src/rust/target to the .gitignore file,
  to avoid including Rust build artifacts in the
  Git tree.
* Fix the syntax when calling the IP mapping helper
  and deleting IP mappings.

Signed-off-by: Herbert Wolverson <herberticus@gmail.com>
This commit is contained in:
Herbert Wolverson
2023-01-04 15:07:47 +00:00
parent 485ce30b45
commit b0ff63d278
2 changed files with 5 additions and 2 deletions

3
.gitignore vendored
View File

@@ -46,6 +46,9 @@ src/longTermStats.json
src/queuingStructure.json
src/tinsStats.json
# Ignore Rust build artifacts
src/rust/target
# Ignore project folders for some IDEs
.idea/
__pycache__

View File

@@ -908,9 +908,9 @@ def refreshShapersUpdateOnly():
def removeDeviceIPsFromFilter(circuit):
for device in circuit['devices']:
for ipv4 in device['ipv4s']:
shell('./xdp_iphash_to_cpu_cmdline del --ip ' + str(ipv4))
shell('./xdp_iphash_to_cpu_cmdline del ip ' + str(ipv4))
for ipv6 in device['ipv6s']:
shell('./xdp_iphash_to_cpu_cmdline del --ip ' + str(ipv6))
shell('./xdp_iphash_to_cpu_cmdline del ip ' + str(ipv6))
def addDeviceIPsToFilter(circuit, cpuNumHex):