mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2025-02-25 18:55:32 -06:00
Update integrationSplynx.py
This commit is contained in:
@@ -91,16 +91,11 @@ def createShaper():
|
|||||||
ipv4 = ''
|
ipv4 = ''
|
||||||
ipv6 = ''
|
ipv6 = ''
|
||||||
routerID = serviceJson['router_id']
|
routerID = serviceJson['router_id']
|
||||||
# Try to get ipv4 from . If not present, use other method
|
# If not "Taking IPv4" (Router will assign IP), then use router's set IP
|
||||||
if 'ipv4' in serviceJson:
|
if serviceJson['taking_ipv4'] == 0:
|
||||||
if serviceJson['ipv4'] != '':
|
ipv4 = ipForRouter[routerID]
|
||||||
ipv4 = serviceJson['ipv4']
|
elif serviceJson['taking_ipv4'] == 1:
|
||||||
else:
|
ipv4 = serviceJson['ipv4']
|
||||||
# If not "Taking IPv4" (Router will assign IP), then use router's set IP
|
|
||||||
if serviceJson['taking_ipv4'] == 0:
|
|
||||||
ipv4 = ipForRouter[routerID]
|
|
||||||
elif serviceJson['taking_ipv4'] == 1:
|
|
||||||
ipv4 = serviceJson['ipv4']
|
|
||||||
# If not "Taking IPv6" (Router will assign IP), then use router's set IP
|
# If not "Taking IPv6" (Router will assign IP), then use router's set IP
|
||||||
if serviceJson['taking_ipv6'] == 0:
|
if serviceJson['taking_ipv6'] == 0:
|
||||||
ipv6 = ''
|
ipv6 = ''
|
||||||
|
|||||||
Reference in New Issue
Block a user