+# pending_resources = QueryUpdaterPlugin(
+# page = page,
+# title = 'Pending operations',
+# query = main_query,
+# togglable = False,
+# # start turned off, it will open up itself when stuff comes in
+# toggled = False,
+# domid = 'pending',
+# outline_complete = True,
+# username = request.user,
+# )
+
+ # --------------------------------------------------------------------------
+ # NETWORKS
+ # testbeds as a list of filters
+
+ network_md = metadata.details_by_object('network')
+ network_fields = [column['name'] for column in network_md['column']]
+
+ #query_networks = Query.get('network').select(network_fields)
+ #page.enqueue_query(query_networks)
+
+ filter_testbeds = TestbedsPlugin(
+ page = page,
+ domid = 'testbeds-filter',
+ title = 'Filter by testbeds',
+ query = sq_resource,
+ #query_networks = query_networks,
+ #init_key = "network_hrn",
+ #checkboxes = True,
+ #datatables_options = {
+ # 'iDisplayLength': 25,
+ # 'bLengthChange' : True,
+ # 'bAutoWidth' : True,
+ # },
+ )
+
+ filter_status = FilterStatusPlugin(
+ page = page,
+ domid = "filter-status",
+ query = sq_resource,
+ )
+ apply = ApplyPlugin(
+ page = page,
+ domid = "apply",
+ query = main_query,
+ username = request.user,
+ )
+
+ # --------------------------------------------------------------------------
+ # Ofelia OpenFlow Plugin
+ # Bristol plugin
+
+ # plugin which display a "gathering resources" message
+ # waiting for all resources to be returned by manifold
+ univbriswelcome = Univbris(
+ page = page,
+ title = 'univbris_welcome',
+ domid = 'univbris_welcome',
+ query = query_resource_all,
+ )
+
+ univbrisfoamlist = UnivbrisFoam(
+ page = page,
+ title = 'univbris_foam_ports_selection',
+ domid = 'univbris_foam_ports_selection',
+ query = query_resource_all,
+ query_all = query_resource_all,
+ checkboxes = False,
+ datatables_options = {
+ 'iDisplayLength': 10,
+ 'bLengthChange' : True,
+ 'bAutoWidth' : True,
+ },
+ )
+
+ #plugin which manages the different flowspaces that the user creates, and also sends flowspaces to manifold
+ univbrisfvlist = UnivbrisFv(
+ page = page,
+ title = 'univbris_flowspace_selection',
+ domid = 'univbris_flowspace_selection',
+ query = None,
+ query_all = None,
+ sync_query = query_resource_all,
+ datatables_options = {
+ 'iDisplayLength': 5,
+ 'bLengthChange' : True,
+ 'bAutoWidth' : True,
+ },
+ )
+
+ #plugin which allows the definition of a single flowspace
+ univbrisfvform = UnivbrisFvf(
+ page = page,
+ title = 'univbris_flowspace_form',
+ domid = 'univbris_flowspace_form',
+ query = query_resource_all,
+ query_all = None,
+ datatables_options = {
+ 'iDisplayLength': 3,
+ 'bLengthChange' : True,
+ 'bAutoWidth' : True,
+ },
+ )
+
+ #plugin which allows the definition the match criteria on a single OPTICAL flowspace
+ univbrisofvform = UnivbrisFvfo(
+ page = page,
+ title = 'univbris_oflowspace_form',
+ domid = 'univbris_oflowspace_form',
+ query = None,
+ query_all = None,
+ datatables_options = {
+ 'iDisplayLength': 3,
+ 'bLengthChange' : True,
+ 'bAutoWidth' : True,
+ },
+ )
+
+ #plugin which display the gathered topology
+ univbristopology = UnivbrisTopo(
+ page = page,
+ title = 'univbris_topology',
+ domid = 'univbris_topology',
+ query = query_resource_all,
+ )
+
+ # --------------------------------------------------------------------------
+ # Ofelia VTAM Plugin
+ # Bristol Plugin
+
+ #plugin which display a table where an experimenter will add VMs to according to his needs
+ univbrisvtamplugin = UnivbrisVtamPlugin(
+ page = page,
+ title = 'univbris_vtam',
+ domid = 'univbris_vtam',
+ query = None,
+ )
+
+ #plugin which display a form where an experimenter will specify where a
+ univbrisvtamform = UnivbrisVtamForm(
+ page = page,
+ title = 'univbris_vtam_form',
+ domid = 'univbris_vtam_form',
+ query = query_resource_all,
+ query_all = None,
+ datatables_options = {
+ 'iDisplayLength': 3,
+ 'bLengthChange' : True,
+ 'bAutoWidth' : True,
+ },
+ )
+
+ # --------------------------------------------------------------------------
+ # SLA View and accept dialog
+
+ sla_dialog = SlaDialog(