Commit e71ebc1f authored by Léo-Paul Géneau's avatar Léo-Paul Géneau 👾 Committed by GitHub

Config.py: Add state_refresh support (#11)

parent 6454d350
...@@ -15,18 +15,24 @@ PIM-DM: ...@@ -15,18 +15,24 @@ PIM-DM:
eth0: eth0:
ipv4: ipv4:
enabled: true enabled: true
state_refresh: true
ipv6: ipv6:
enabled: true enabled: true
state_refresh: true
eth1: eth1:
ipv4: ipv4:
enabled: true enabled: true
state_refresh: true
ipv6: ipv6:
enabled: true enabled: true
state_refresh: true
eth2: eth2:
ipv4: ipv4:
enabled: true enabled: true
state_refresh: true
ipv6: ipv6:
enabled: true enabled: true
state_refresh: true
IGMP: IGMP:
Settings: Settings:
......
...@@ -40,12 +40,12 @@ def parse_config_file(file_path): ...@@ -40,12 +40,12 @@ def parse_config_file(file_path):
if if_value.get("ipv4", False): if if_value.get("ipv4", False):
if_ipv4 = if_value["ipv4"] if_ipv4 = if_value["ipv4"]
if if_ipv4.get("enabled", False): if if_ipv4.get("enabled", False):
Main.add_pim_interface(interface_name=if_name, ipv4=True, ipv6=False) Main.add_pim_interface(interface_name=if_name, state_refresh_capable=if_ipv4.get("state_refresh", False), ipv4=True, ipv6=False)
if if_value.get("ipv6", False): if if_value.get("ipv6", False):
if_ipv6 = if_value["ipv6"] if_ipv6 = if_value["ipv6"]
if if_ipv6.get("enabled", False): if if_ipv6.get("enabled", False):
Main.add_pim_interface(interface_name=if_name, ipv4=False, ipv6=True) Main.add_pim_interface(interface_name=if_name, state_refresh_capable=if_ipv6.get("state_refresh", False), ipv4=False, ipv6=True)
##### IGMP config ####### ##### IGMP config #######
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment