From af81344be792c417953e84d201fc8d56ba710304 Mon Sep 17 00:00:00 2001 From: Mary Salvi Date: Tue, 23 Jun 2026 15:29:40 -0400 Subject: [PATCH 1/3] Add models-list wireframe --- .../net_maestro/partials/models_list.html | 35 +++++++++++ .../templates/net_maestro/shared/sidebar.html | 15 +++++ net_maestro/core/views.py | 59 +++++++++++++++++++ net_maestro/urls.py | 5 ++ 4 files changed, 114 insertions(+) create mode 100644 net_maestro/core/templates/net_maestro/partials/models_list.html diff --git a/net_maestro/core/templates/net_maestro/partials/models_list.html b/net_maestro/core/templates/net_maestro/partials/models_list.html new file mode 100644 index 0000000..55addf0 --- /dev/null +++ b/net_maestro/core/templates/net_maestro/partials/models_list.html @@ -0,0 +1,35 @@ +
+
+
+
+

Available Models

+
+
+ +
+ {% for model in models %} +
+
+
+
+ +

{{ model.name }}

+
+
+
{{ model.type }}
+
{{ model.engine }}
+
+
+
+
+ {% empty %} +
+
+ +

No models available

+
+
+ {% endfor %} +
+
+
diff --git a/net_maestro/core/templates/net_maestro/shared/sidebar.html b/net_maestro/core/templates/net_maestro/shared/sidebar.html index 12f59b9..6543e62 100644 --- a/net_maestro/core/templates/net_maestro/shared/sidebar.html +++ b/net_maestro/core/templates/net_maestro/shared/sidebar.html @@ -1,6 +1,21 @@ diff --git a/net_maestro/core/views.py b/net_maestro/core/views.py index 91a4133..9fd3f8f 100644 --- a/net_maestro/core/views.py +++ b/net_maestro/core/views.py @@ -25,40 +25,22 @@ def _avail_models_context() -> dict[str, object]: return { "models": [ { - "name": "ESNet Switch", - "type": "Switch", - "engine": "PDES (ROSS)", + "name": "nw-lp", + "type": "host", + "description": """Network LP for compute-node endpoints. + Carries an inline workload: block — traffic pattern, message count, + timing, payload size.""", + "parameters": ["traffic", "num_messages", "arrival_time", "payload_size"], "icon_class": "ri-organization-chart", + "usage_count": 3, }, { - "name": "ESNet Host", - "type": "Host", - "engine": "PDES (ROSS)", - "icon_class": "ri-server-line", - }, - { - "name": "ESNet Router", - "type": "Router", - "engine": "PDES (ROSS)", + "name": "simplep2p", + "type": "router", + "description": "Simple point-to-point router.", + "parameters": ["routing", "latency", "bandwidth", "chunk_size", "vc_size"], "icon_class": "ri-router-fill", - }, - { - "name": "Mug Host", - "type": "Host", - "engine": "PDES (ROSS)", - "icon_class": "ri-server-line", - }, - { - "name": "Acorn Router", - "type": "Router", - "engine": "PDES (ROSS)", - "icon_class": "ri-router-fill", - }, - { - "name": "Cube Switch", - "type": "Switch", - "engine": "PDES (ROSS)", - "icon_class": "ri-organization-chart", + "usage_count": 2, }, ], } From aae5fb12c491e7717ac3a09791004e4db58f8980 Mon Sep 17 00:00:00 2001 From: Mary Salvi Date: Tue, 4 Aug 2026 13:00:05 -0400 Subject: [PATCH 3/3] Update base models on custom component view --- net_maestro/core/views.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/net_maestro/core/views.py b/net_maestro/core/views.py index 9fd3f8f..5f953ee 100644 --- a/net_maestro/core/views.py +++ b/net_maestro/core/views.py @@ -61,15 +61,15 @@ def _custom_component_context() -> dict[str, object]: "icon_class": "ri-organization-chart", }, { - "name": "ESNet Host", + "name": "nw-lp", "type": "Host", - "engine": "PDES (ROSS)", + "engine": "PDES (CODES)", "icon_class": "ri-server-line", }, { - "name": "ESNet Router", + "name": "simplep2p", "type": "Router", - "engine": "PDES (ROSS)", + "engine": "PDES (CODES)", "icon_class": "ri-router-fill", }, ], @@ -78,7 +78,7 @@ def _custom_component_context() -> dict[str, object]: "id": 1, "name": "High Traffic Host", "type": "Host", - "base_model": "ESNet Host", + "base_model": "nw-lp", "icon_class": "ri-server-line", "color_class": "text-primary", "badge_class": "badge-primary", @@ -94,7 +94,7 @@ def _custom_component_context() -> dict[str, object]: "id": 2, "name": "Regional Backbone Router", "type": "Router", - "base_model": "ESNet Router", + "base_model": "simplep2p", "icon_class": "ri-router-fill", "color_class": "text-secondary", "badge_class": "badge-secondary", @@ -103,7 +103,7 @@ def _custom_component_context() -> dict[str, object]: {"label": "Egress Bandwidth", "value": "400 Gbps"}, {"label": "Ingress Latency", "value": "1.25 ms"}, {"label": "Egress Latency", "value": "1.25 ms"}, - {"label": "Engine", "value": "PDES (ROSS)"}, + {"label": "Engine", "value": "PDES (CODES)"}, {"label": "Role", "value": "Backbone Transit"}, ], },