예제 #1
0
def bsc_app_init():
    if not docs_enabled:
        return

    APP_NAME = os.path.dirname(__file__).split("/")[-1]
    app = AppLister(APP_NAME, "Documentation", 9, "User Guide")
    app.addTab("docs", "User Guide", user_guide)
    AppLoader.addApp(app)
def bsc_app_init():  
    if not docs_enabled:
        return

    APP_NAME = os.path.dirname(__file__).split("/")[-1]   
    app = AppLister(APP_NAME, "Documentation", 9, "User Guide")
    app.addTab("docs", "User Guide", user_guide)
    AppLoader.addApp(app)
def bsc_app_init():  
    # By default, App Name is the same as directory name. Change if needed.
    APP_NAME = os.path.dirname(__file__).split("/")[-1]   
    
    # Create the App. Parameters are 
    # - Name: the id, lowercase letters only
    # - Label: Human readable discription for the menu to the left
    # - Priority: determines ranking the menu to the left), One-line description
    # - Description: One line description of the app
    app = AppLister(APP_NAME, "Controller Stats", 5, "Controller Stats")

    # Add Tabs. Parameters are:
    # - Name: the id, lowercase letters only
    # - Label: Human readable discription for the menu to the left
    # - View: name of the python function that contains the django view (see below)
    app.addTab("openflow_graphs", "OpenFlow Graphs", flow_graphs_view)
    app.addTab("system_graphs", "System Graphs", system_stats_graph_view)
    AppLoader.addApp(app)
예제 #4
0
def bsc_app_init():
    # Check if logging is enabled, else do not start the app
    if not log_collection_enabled():
        return

    # By default, App Name is the same as directory name. Change if needed.
    APP_NAME = os.path.dirname(__file__).split("/")[-1]

    # Create the App. Parameters are
    # - Name: the id, lowercase letters only
    # - Label: Human readable discription for the menu to the left
    # - Priority: determines ranking the menu to the left), One-line description
    # - Description: One line description of the app
    app = AppLister(APP_NAME, "Logs", 5, "Controller Logs")

    # Add Tabs. Parameters are:
    # - Name: the id, lowercase letters only
    # - Label: Human readable discription for the menu to the left
    # - View: name of the python function that contains the django view (see below)
    app.addTab("controllerlogs", "Controller Logs", controller)
    app.addTab("dblogs", "Database Logs", db)
    app.addTab("sdnconlogs", "SDNCon Logs", sdncon)
    app.addTab("alllogs", "All Logs", all)
    AppLoader.addApp(app)
def bsc_app_init():
    # Check if logging is enabled, else do not start the app
    if not log_collection_enabled():
        return

    # By default, App Name is the same as directory name. Change if needed.
    APP_NAME = os.path.dirname(__file__).split("/")[-1]   
    
    # Create the App. Parameters are 
    # - Name: the id, lowercase letters only
    # - Label: Human readable discription for the menu to the left
    # - Priority: determines ranking the menu to the left), One-line description
    # - Description: One line description of the app
    app = AppLister(APP_NAME, "Logs", 5, "Controller Logs")

    # Add Tabs. Parameters are:
    # - Name: the id, lowercase letters only
    # - Label: Human readable discription for the menu to the left
    # - View: name of the python function that contains the django view (see below)
    app.addTab("controllerlogs", "Controller Logs", controller)
    app.addTab("dblogs", "Database Logs", db)
    app.addTab("sdnconlogs", "SDNCon Logs", sdncon)
    app.addTab("alllogs", "All Logs", all)
    AppLoader.addApp(app)
예제 #6
0
def bsc_app_init():
    # By default, App Name is the same as directory name. Change if needed.
    APP_NAME = os.path.dirname(__file__).split("/")[-1]

    # Create the App. Parameters are
    # - Name: the id, lowercase letters only
    # - Label: Human readable discription for the menu to the left
    # - Priority: determines ranking the menu to the left), One-line description
    # - Description: One line description of the app
    app = AppLister(APP_NAME, "Controller Stats", 5, "Controller Stats")

    # Add Tabs. Parameters are:
    # - Name: the id, lowercase letters only
    # - Label: Human readable discription for the menu to the left
    # - View: name of the python function that contains the django view (see below)
    app.addTab("openflow_graphs", "OpenFlow Graphs", flow_graphs_view)
    app.addTab("system_graphs", "System Graphs", system_stats_graph_view)
    AppLoader.addApp(app)