mirror of
https://github.com/tomaae/homeassistant-mikrotik_router.git
synced 2025-06-27 11:18:55 +02:00
Merge pull request #134 from kittizz/master
add more unique key mangle role
This commit is contained in:
commit
0120409382
2 changed files with 10 additions and 2 deletions
|
@ -619,7 +619,8 @@ class MikrotikControllerMangleSwitch(MikrotikControllerSwitch):
|
|||
if self._ctrl.data["mangle"][uid]["uniq-id"] == (
|
||||
f"{self._data['chain']},{self._data['action']},{self._data['protocol']},"
|
||||
f"{self._data['src-address']}:{self._data['src-port']}-"
|
||||
f"{self._data['dst-address']}:{self._data['dst-port']}"
|
||||
f"{self._data['dst-address']}:{self._data['dst-port']},"
|
||||
f"{self._data['src-address-list']}-{self._data['dst-address-list']}"
|
||||
):
|
||||
value = self._ctrl.data["mangle"][uid][".id"]
|
||||
|
||||
|
@ -637,7 +638,8 @@ class MikrotikControllerMangleSwitch(MikrotikControllerSwitch):
|
|||
if self._ctrl.data["mangle"][uid]["uniq-id"] == (
|
||||
f"{self._data['chain']},{self._data['action']},{self._data['protocol']},"
|
||||
f"{self._data['src-address']}:{self._data['src-port']}-"
|
||||
f"{self._data['dst-address']}:{self._data['dst-port']}"
|
||||
f"{self._data['dst-address']}:{self._data['dst-port']},"
|
||||
f"{self._data['src-address-list']}-{self._data['dst-address-list']}"
|
||||
):
|
||||
value = self._ctrl.data["mangle"][uid][".id"]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue