ORIGINAL PROJECT INTERFACE · GrandStay · original Python source; no devices connected · Fictional demo data · Back to portfolio

main.py

Original automation module from the submitted project. Lab credentials and the device inventory are not published.

# main.py
# Master Workflow Orchestrator
# Sequentially runs the full GrandStay Hotel automation suite: VLAN provisioning
# across all switches, static inter-VLAN routing setup, ACL security policy
# injection, and final operational verification - all logged with total
# execution time. No dynamic routing protocol (e.g. OSPF) is used, matching
# the scope defined in the project proposal.

import time
from vlan_automation import provision_vlans
from routing_automation import provision_routing
from acl_automation import provision_acls
from verify import run_verification


def main():
    print("=" * 70)
    print("      GRANDSTAY HOTEL NETWORK AUTOMATION ORCHESTRATOR INITIALIZING")
    print("=" * 70)
    start_time = time.time()

    provision_vlans()
    time.sleep(10)

    provision_routing()
    time.sleep(10)

    provision_acls()
    time.sleep(10)

    run_verification()

    duration = time.time() - start_time
    print("=" * 70)
    print(f"[COMPLETE] Run cycle finished in: {duration:.2f} seconds.")
    print("=" * 70)


if __name__ == "__main__":
    main()