Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
224 changes: 224 additions & 0 deletions doc/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1468,6 +1468,10 @@ <h2>Table of Contents</h2>
<a href="#metalstack.api.v2.SwitchNic"><span class="badge">M</span>SwitchNic</a>
</li>

<li>
<a href="#metalstack.api.v2.SwitchNicWithMachine"><span class="badge">M</span>SwitchNicWithMachine</a>
</li>

<li>
<a href="#metalstack.api.v2.SwitchOS"><span class="badge">M</span>SwitchOS</a>
</li>
Expand All @@ -1484,6 +1488,10 @@ <h2>Table of Contents</h2>
<a href="#metalstack.api.v2.SwitchSync"><span class="badge">M</span>SwitchSync</a>
</li>

<li>
<a href="#metalstack.api.v2.SwitchWithMachines"><span class="badge">M</span>SwitchWithMachines</a>
</li>


<li>
<a href="#metalstack.api.v2.BGPState"><span class="badge">E</span>BGPState</a>
Expand Down Expand Up @@ -1511,6 +1519,14 @@ <h2>Table of Contents</h2>
<a href="#metalstack%2fadmin%2fv2%2fswitch.proto">metalstack/admin/v2/switch.proto</a>
<ul>

<li>
<a href="#metalstack.admin.v2.SwitchServiceConnectedMachinesRequest"><span class="badge">M</span>SwitchServiceConnectedMachinesRequest</a>
</li>

<li>
<a href="#metalstack.admin.v2.SwitchServiceConnectedMachinesResponse"><span class="badge">M</span>SwitchServiceConnectedMachinesResponse</a>
</li>

<li>
<a href="#metalstack.admin.v2.SwitchServiceDeleteRequest"><span class="badge">M</span>SwitchServiceDeleteRequest</a>
</li>
Expand Down Expand Up @@ -12798,6 +12814,107 @@ <h3 id="metalstack.api.v2.SwitchNic">SwitchNic</h3>



<h3 id="metalstack.api.v2.SwitchNicWithMachine">SwitchNicWithMachine</h3>
<p>SwitchNicWithMachine associates a switch port with its connected machine.</p>


<table class="field-table">
<thead>
<tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
</thead>
<tbody>

<tr>
<td>nic</td>
<td><a href="#metalstack.api.v2.SwitchNic">SwitchNic</a></td>
<td></td>
<td><p>Nic is the switch nic the machine is connected to. </p></td>
</tr>

<tr>
<td>uuid</td>
<td><a href="#string">string</a></td>
<td></td>
<td><p>Uuid of the machine. </p></td>
</tr>

<tr>
<td>size</td>
<td><a href="#string">string</a></td>
<td></td>
<td><p>Size of the machine. </p></td>
</tr>

<tr>
<td>allocation_hostname</td>
<td><a href="#string">string</a></td>
<td></td>
<td><p>AllocationHostname if machine is allocated. </p></td>
</tr>

<tr>
<td>vpn_connected</td>
<td><a href="#bool">bool</a></td>
<td></td>
<td><p>VpnConnected indicated whether the machine is connected to a VPN. </p></td>
</tr>

<tr>
<td>fru_product_serial</td>
<td><a href="#string">string</a></td>
<td></td>
<td><p>FruProductSerial of the machine. </p></td>
</tr>

<tr>
<td>fru_chassis_part_serial</td>
<td><a href="#string">string</a></td>
<td></td>
<td><p>FruChassisPartSerial of the machine. </p></td>
</tr>

<tr>
<td>liveliness</td>
<td><a href="#metalstack.api.v2.MachineLiveliness">MachineLiveliness</a></td>
<td></td>
<td><p>Liveliness of the machine. </p></td>
</tr>

<tr>
<td>state</td>
<td><a href="#metalstack.api.v2.MachineState">MachineState</a></td>
<td></td>
<td><p>State of the machine. </p></td>
</tr>

<tr>
<td>failed_reclaim</td>
<td><a href="#bool">bool</a></td>
<td></td>
<td><p>FailedReclaim is true if the machine failed to return to the waiting machines pool after deletion. </p></td>
</tr>

<tr>
<td>crashloop</td>
<td><a href="#bool">bool</a></td>
<td></td>
<td><p>Crashloop is true if there was an unexpected event in the provisioning cycle. </p></td>
</tr>

<tr>
<td>last_error_event_time</td>
<td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>
<td></td>
<td><p>LastErrorEventTime in case some error happened in the past. </p></td>
</tr>

</tbody>
</table>





<h3 id="metalstack.api.v2.SwitchOS">SwitchOS</h3>
<p>SwitchOS holds information about the NOS and versions running on the switch.</p>

Expand Down Expand Up @@ -12950,6 +13067,51 @@ <h3 id="metalstack.api.v2.SwitchSync">SwitchSync</h3>



<h3 id="metalstack.api.v2.SwitchWithMachines">SwitchWithMachines</h3>
<p>SwitchWithMachines contains a mapping from switch ports to connected machines.</p>


<table class="field-table">
<thead>
<tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
</thead>
<tbody>

<tr>
<td>id</td>
<td><a href="#string">string</a></td>
<td></td>
<td><p>Id of the switch. </p></td>
</tr>

<tr>
<td>partition</td>
<td><a href="#string">string</a></td>
<td></td>
<td><p>Partition of the switch. </p></td>
</tr>

<tr>
<td>rack</td>
<td><a href="#string">string</a></td>
<td></td>
<td><p>Rack of the switch. </p></td>
</tr>

<tr>
<td>connections</td>
<td><a href="#metalstack.api.v2.SwitchNicWithMachine">SwitchNicWithMachine</a></td>
<td>repeated</td>
<td><p>Connections associates switch ports with the machines connected to them. </p></td>
</tr>

</tbody>
</table>







<h3 id="metalstack.api.v2.BGPState">BGPState</h3>
Expand Down Expand Up @@ -13110,6 +13272,61 @@ <h2 id="metalstack/admin/v2/switch.proto">metalstack/admin/v2/switch.proto</h2><
<p></p>


<h3 id="metalstack.admin.v2.SwitchServiceConnectedMachinesRequest">SwitchServiceConnectedMachinesRequest</h3>
<p>SwitchServiceConnectedMachinesRequest.</p>


<table class="field-table">
<thead>
<tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
</thead>
<tbody>

<tr>
<td>query</td>
<td><a href="#metalstack.api.v2.SwitchQuery">metalstack.api.v2.SwitchQuery</a></td>
<td></td>
<td><p>Query to filter the switch results. </p></td>
</tr>

<tr>
<td>machine_query</td>
<td><a href="#metalstack.api.v2.MachineQuery">metalstack.api.v2.MachineQuery</a></td>
<td></td>
<td><p>MachineQuery to filter the machine results. </p></td>
</tr>

</tbody>
</table>





<h3 id="metalstack.admin.v2.SwitchServiceConnectedMachinesResponse">SwitchServiceConnectedMachinesResponse</h3>
<p>SwitchServiceConnectedMachinesResponse.</p>


<table class="field-table">
<thead>
<tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
</thead>
<tbody>

<tr>
<td>switches_with_machines</td>
<td><a href="#metalstack.api.v2.SwitchWithMachines">metalstack.api.v2.SwitchWithMachines</a></td>
<td>repeated</td>
<td><p>SwitchesWithMachines contains all switches with their machine connections. </p></td>
</tr>

</tbody>
</table>





<h3 id="metalstack.admin.v2.SwitchServiceDeleteRequest">SwitchServiceDeleteRequest</h3>
<p>SwitchServiceDeleteRequest.</p>

Expand Down Expand Up @@ -13546,6 +13763,13 @@ <h3 id="metalstack.admin.v2.SwitchService">SwitchService</h3>
<td><p>Port set the port status of a switch port.</p></td>
</tr>

<tr>
<td>ConnectedMachines</td>
<td><a href="#metalstack.admin.v2.SwitchServiceConnectedMachinesRequest">SwitchServiceConnectedMachinesRequest</a></td>
<td><a href="#metalstack.admin.v2.SwitchServiceConnectedMachinesResponse">SwitchServiceConnectedMachinesResponse</a></td>
<td><p>ConnectedMachines lists all switches with their machine connections.</p></td>
</tr>

</tbody>
</table>

Expand Down
47 changes: 41 additions & 6 deletions go/metalstack/admin/v2/adminv2connect/switch.connect.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading