Skip to content

Commit

Permalink
Exclude ppp users from interface list #42
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaae committed Jun 26, 2020
1 parent a860641 commit 85f2f20
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion custom_components/mikrotik_router/mikrotik_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,14 @@ def get_interface(self):
{"name": "rx-bits-per-second", "default": 0},
{"name": "tx-bits-per-second", "default": 0},
],
skip=[{"name": "type", "value": "bridge"}],
skip=[
{"name": "type", "value": "bridge"},
{"name": "type", "value": "ppp-in"},
{"name": "type", "value": "pptp-in"},
{"name": "type", "value": "sstp-in"},
{"name": "type", "value": "l2tp-in"},
{"name": "type", "value": "pppoe-in"},
],
)

# Udpate virtual interfaces
Expand Down

0 comments on commit 85f2f20

Please sign in to comment.