16 lines
426 B
Python
Executable File
16 lines
426 B
Python
Executable File
#!/usr/bin/env python3
|
|
|
|
from utils.log import get_loggers
|
|
from topology.midast import Topology
|
|
from provisioning.midasp import Provisioning
|
|
from dhcp.midasd import DHCPServer
|
|
|
|
if __name__ == '__main__':
|
|
get_loggers()
|
|
topology = Topology()
|
|
topology.build()
|
|
provisioning = Provisioning()
|
|
provisioning.render(topology)
|
|
dhcp_server = DHCPServer(SETTINGS_FILE='settings.yaml')
|
|
dhcp_server.run(topology)
|