Skip to content

Commit

Permalink
remove IGMP and MLD code... they are now deployed on a separate packa…
Browse files Browse the repository at this point in the history
…ge to ease maintenance
  • Loading branch information
pedrofran12 committed Jan 3, 2021
1 parent 731c670 commit 8ea0752
Show file tree
Hide file tree
Showing 49 changed files with 19 additions and 2,797 deletions.
4 changes: 2 additions & 2 deletions hpimdm/Config.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import yaml
from hpimdm.tree import hpim_globals
from hpimdm.igmp import igmp_globals
from hpimdm.mld import mld_globals
from igmp.igmp2 import igmp_globals
from mld.mld1 import mld_globals
from hpimdm import Main


Expand Down
142 changes: 0 additions & 142 deletions hpimdm/InterfaceIGMP.py

This file was deleted.

198 changes: 0 additions & 198 deletions hpimdm/InterfaceMLD.py

This file was deleted.

4 changes: 2 additions & 2 deletions hpimdm/Kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
from hpimdm.rwlock.RWLock import RWLockWrite
from hpimdm import UnicastRouting

from hpimdm.InterfaceMLD import InterfaceMLD
from hpimdm.InterfaceIGMP import InterfaceIGMP
from mld.InterfaceMLD import InterfaceMLD
from igmp.InterfaceIGMP import InterfaceIGMP
from hpimdm.InterfaceHPIM import InterfaceHPIM
from hpimdm.InterfaceHPIM6 import InterfaceHPIM6
from .tree.KernelEntryInterface import KernelEntry4Interface, KernelEntry6Interface
Expand Down
8 changes: 7 additions & 1 deletion hpimdm/Main.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ def get_config():
try:
from . import Config
return Config.get_yaml_file()
except ModuleNotFoundError:
except ImportError:
return "PYYAML needs to be installed. Execute \"pip3 install pyyaml\""


Expand All @@ -419,13 +419,19 @@ def main():
# logging
global logger
logger = logging.getLogger('hpim')
igmp_logger = logging.getLogger('igmp')
mld_logger = logging.getLogger('mld')
logger.setLevel(logging.DEBUG)
igmp_logger.setLevel(logging.DEBUG)
mld_logger.setLevel(logging.DEBUG)
handler = logging.StreamHandler(sys.stdout)
handler.addFilter(RootFilter(""))
handler.setLevel(logging.DEBUG)
handler.setFormatter(logging.Formatter('%(asctime)-20s %(name)-50s %(tree)-35s %(vif)-2s %(interfacename)-5s '
'%(routername)-2s %(message)s'))
logger.addHandler(handler)
igmp_logger.addHandler(handler)
mld_logger.addHandler(handler)

global kernel
from hpimdm.Kernel import Kernel4
Expand Down
Loading

0 comments on commit 8ea0752

Please sign in to comment.