def register_workers(cc):
    cli_worker.start(cc)
    netconf_worker.start(cc)
    platform_worker.start(cc)
    l3vpn_worker.start(cc)
    lldp_worker.start(cc)
    inventory_worker.start(cc)
    unified_worker.start(cc)
    uniconfig_worker.start(cc)
    terraform_worker.start(cc)
Exemple #2
0
def register_workers(cc):
    cli_worker.start(cc)
    netconf_worker.start(cc)
    platform_worker.start(cc)
    lldp_worker.start(cc)
    inventory_worker.start(cc)
    unified_worker.start(cc)
    uniconfig_worker.start(cc)
    vll_worker.start(cc)
    vll_service_worker.start(cc)
    vpls_worker.start(cc)
    vpls_service_worker.start(cc)
    bi_service_worker.start(cc)
    common_worker.start(cc)
def main():
    print('Starting FRINX workers')
    cc = ConductorWorker(conductor_url_base, 1, 0.1)

    cli_worker.start(cc)
    platform_worker.start(cc)
    l3vpn_worker.start(cc)
    lldp_worker.start(cc)
    inventory_worker.start(cc)
    unified_worker.start(cc)
    uniconfig_worker.start(cc)
    terraform_worker.start(cc)

    # block
    while 1:
        time.sleep(1)
Exemple #4
0
def _register_workers(conductor) -> None:

    from frinx_conductor_workers import common_worker
    from frinx_conductor_workers import cli_worker
    from frinx_conductor_workers import netconf_worker
    from frinx_conductor_workers import uniconfig_worker
    from frinx_conductor_workers import http_worker
    from frinx_conductor_workers import connection_manager_worker

    import inventory_worker
    import lldp_worker
    import platform_worker
    import unified_worker
    import psql_worker
    import device_worker
    import lldp_identification_worker
    import influx_db
    # import vll_worker
    # import vll_service_worker
    # import vpls_worker
    # import vpls_service_worker
    # import bi_service_worker

    cli_worker.start(conductor)
    netconf_worker.start(conductor)
    uniconfig_worker.start(conductor)
    connection_manager_worker.start(conductor)
    common_worker.start(conductor)
    http_worker.start(conductor)
    platform_worker.start(conductor)
    lldp_worker.start(conductor)
    inventory_worker.start(conductor)
    unified_worker.start(conductor)
    psql_worker.start(conductor)
    device_worker.start(conductor)
    lldp_identification_worker.start(conductor)
    influx_db.start(conductor)