Commit 44900414 authored by Léo-Paul Géneau's avatar Léo-Paul Géneau 👾

Linter compliance

parent 9eac6707
...@@ -167,13 +167,13 @@ def get_yaml_file(): ...@@ -167,13 +167,13 @@ def get_yaml_file():
""" """
dict_file = BASE_CONFIG.copy() dict_file = BASE_CONFIG.copy()
for if_name, if_value in Main.interfaces.items(): for if_name, _ in Main.interfaces.items():
dict_file["PIM-DM"]["Interfaces"][if_name] = {} dict_file["PIM-DM"]["Interfaces"][if_name] = {}
dict_file["PIM-DM"]["Interfaces"][if_name]["ipv4"] = { dict_file["PIM-DM"]["Interfaces"][if_name]["ipv4"] = {
"enabled": True, "enabled": True,
} }
for if_name, if_value in Main.interfaces_v6.items(): for if_name, _ in Main.interfaces_v6.items():
if if_name not in dict_file["PIM-DM"]["Interfaces"]: if if_name not in dict_file["PIM-DM"]["Interfaces"]:
dict_file["PIM-DM"]["Interfaces"][if_name] = {} dict_file["PIM-DM"]["Interfaces"][if_name] = {}
......
...@@ -8,7 +8,7 @@ from pimdm.Interface import Interface ...@@ -8,7 +8,7 @@ from pimdm.Interface import Interface
from pimdm.packet.ReceivedPacket import ReceivedPacket from pimdm.packet.ReceivedPacket import ReceivedPacket
from pimdm import Main from pimdm import Main
from pimdm.rwlock.RWLock import RWLockWrite from pimdm.rwlock.RWLock import RWLockWrite
from pimdm.packet.PacketPimHelloOptions import * from pimdm.packet.PacketPimHelloOptions import PacketPimHelloHoldtime, PacketPimHelloGenerationID, PacketPimHelloStateRefreshCapable
from pimdm.packet.PacketPimHello import PacketPimHello from pimdm.packet.PacketPimHello import PacketPimHello
from pimdm.packet.PacketPimHeader import PacketPimHeader from pimdm.packet.PacketPimHeader import PacketPimHeader
from pimdm.packet.Packet import Packet from pimdm.packet.Packet import Packet
......
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