diff --git a/streamlit_server/views/workload_hosts.py b/streamlit_server/views/workload_hosts.py index 5b27861..246e078 100644 --- a/streamlit_server/views/workload_hosts.py +++ b/streamlit_server/views/workload_hosts.py @@ -5,41 +5,6 @@ import uuid def render_list(): st.header("Workload Host Management") - # Create Workload Host Form - with st.expander("Create New Workload Host"): - with st.form("create_workload_host"): - name = st.text_input("Workload Host Name") - region_id = st.text_input("Region ID") - secret_key = st.text_input("Secret Key", value=str(uuid.uuid4())) - system_manufacturer = st.text_input("System Manufacturer") - system_model = st.text_input("System Model") - physical_identifier = st.text_input("Physical Identifier") - dcim_identifier = st.text_input("DCIM Identifier") - installed_date = st.date_input("Installed Date") - installed_status = st.text_input("Installed Status") - hostname = st.text_input("Hostname") - available_for_scheduling = st.checkbox("Available for Scheduling", value=True) - placement_priority = st.number_input("Placement Priority", value=100) - submit = st.form_submit_button("Create Workload Host") - - if submit and name and region_id: - result = st.session_state.client.create_workload_host( - name=name, - region_id=region_id, - secret_key=secret_key, - system_manufacturer=system_manufacturer, - system_model=system_model, - physical_identifier=physical_identifier, - dcim_identifier=dcim_identifier, - installed_date=installed_date, - installed_status=installed_status, - hostname=hostname, - available_for_scheduling=available_for_scheduling, - placement_priority=placement_priority - ) - if result: - st.success(f"Workload Host '{name}' created successfully!") - # List Workload Hosts st.subheader("Existing Workload Hosts") workload_hosts = st.session_state.client.get_workload_hosts() @@ -90,6 +55,7 @@ def render_detail(): st.markdown(f"**Installed Status:** `{workload_host['installed_status']}`") st.markdown(f"**Available for Scheduling:** `{workload_host['available_for_scheduling']}`") st.markdown(f"**Placement Priority:** `{workload_host['placement_priority']}`") + st.markdown(f"**Status:** `{workload_host['status']}`") # Display OVS Bridges st.subheader("Attached OVS Bridges")