Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
4eb1bed
Add infra switch service and basic switch types for api v2
iljarotar Jun 18, 2025
9582cea
add tests for mac validation
iljarotar Jun 18, 2025
0b29c3a
make session uptime a duration
iljarotar Jun 18, 2025
c41adc6
rename partition id to partition
iljarotar Jun 18, 2025
95a90bc
Merge branch 'main' of https://github.com/metal-stack/api into mep17
majst01 Jul 10, 2025
6e770f6
Merge main
majst01 Jul 10, 2025
765b83f
Merge branch 'main' of https://github.com/metal-stack/api into mep17
majst01 Jul 16, 2025
1f6362c
Merge branch 'main' of https://github.com/metal-stack/api into mep17
majst01 Jul 17, 2025
eab1235
Merge branch 'main' of https://github.com/metal-stack/api into mep17
majst01 Aug 1, 2025
c6afc98
Merge main
majst01 Aug 1, 2025
67cf68e
Merge branch 'main' of github.com:metal-stack/api into mep17
iljarotar Aug 8, 2025
692c52a
merge main
iljarotar Aug 8, 2025
efe63fc
merge
iljarotar Aug 8, 2025
2737b8c
Merge branch 'main' of github.com:metal-stack/api into mep17
iljarotar Aug 14, 2025
d7dd3fb
merge main
iljarotar Dec 18, 2025
5434684
fix tests
iljarotar Dec 18, 2025
be33a1c
revert switch description change
iljarotar Dec 18, 2025
8d883f1
add bgp routes to heartbeat
iljarotar Jan 13, 2026
cbd4433
add lldp neighbors to heartbeat
iljarotar Jan 13, 2026
86ade9b
Merge branch 'main' of github.com:metal-stack/api into mep17
iljarotar Jan 13, 2026
7b28e1b
typo
iljarotar Jan 13, 2026
0726852
only one type of mgmt switch
iljarotar Jan 13, 2026
80c16ad
Merge main
majst01 Mar 27, 2026
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
138 changes: 138 additions & 0 deletions doc/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1983,6 +1983,10 @@ <h2>Table of Contents</h2>
<a href="#metalstack.api.v2.SwitchReplaceMode"><span class="badge">E</span>SwitchReplaceMode</a>
</li>

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



</ul>
Expand Down Expand Up @@ -2647,6 +2651,14 @@ <h2>Table of Contents</h2>
<a href="#metalstack%2finfra%2fv2%2fswitch.proto">metalstack/infra/v2/switch.proto</a>
<ul>

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

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

<li>
<a href="#metalstack.infra.v2.SwitchServiceGetRequest"><span class="badge">M</span>SwitchServiceGetRequest</a>
</li>
Expand Down Expand Up @@ -16185,6 +16197,13 @@ <h3 id="metalstack.api.v2.Switch">Switch</h3>
<td><p>LastSyncError contains information about the last unsuccessful heartbeat of the switch. </p></td>
</tr>

<tr>
<td>type</td>
<td><a href="#metalstack.api.v2.SwitchType">SwitchType</a></td>
<td></td>
<td><p>Type is the role of the switch. </p></td>
</tr>

</tbody>
</table>

Expand Down Expand Up @@ -16707,6 +16726,47 @@ <h3 id="metalstack.api.v2.SwitchReplaceMode">SwitchReplaceMode</h3>
</tbody>
</table>

<h3 id="metalstack.api.v2.SwitchType">SwitchType</h3>
<p>SwitchType represents the role of a switch.</p>
<table class="enum-table">
<thead>
<tr><td>Name</td><td>Number</td><td>Description</td></tr>
</thead>
<tbody>

<tr>
<td>SWITCH_TYPE_UNSPECIFIED</td>
<td>0</td>
<td><p>SWITCH_TYPE_UNSPECIFIED is not specified.</p></td>
</tr>

<tr>
<td>SWITCH_TYPE_LEAF</td>
<td>1</td>
<td><p>SWITCH_TYPE_LEAF is a leaf switch.</p></td>
</tr>

<tr>
<td>SWITCH_TYPE_EXIT</td>
<td>2</td>
<td><p>SWITCH_TYPE_EXIT is an exit switch.</p></td>
</tr>

<tr>
<td>SWITCH_TYPE_SPINE</td>
<td>3</td>
<td><p>SWITCH_TYPE_SPINE is a spine switch.</p></td>
</tr>

<tr>
<td>SWITCH_TYPE_MGMT</td>
<td>4</td>
<td><p>SWITCH_TYPE_MGMT is a switch used only for management tasks.</p></td>
</tr>

</tbody>
</table>




Expand Down Expand Up @@ -21002,6 +21062,70 @@ <h2 id="metalstack/infra/v2/switch.proto">metalstack/infra/v2/switch.proto</h2><
<p></p>


<h3 id="metalstack.infra.v2.BGPRoute">BGPRoute</h3>
<p>BGPRoute represents the route to a prefix.</p>


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

<tr>
<td>cidr</td>
<td><a href="#string">string</a></td>
<td></td>
<td><p>CIDR of the network that is routed to. </p></td>
</tr>

</tbody>
</table>





<h3 id="metalstack.infra.v2.LLDPNeighbor">LLDPNeighbor</h3>
<p>LLDPNeighbor contains details about a neighbor learned via LLDP.</p>


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

<tr>
<td>remote_host</td>
<td><a href="#string">string</a></td>
<td></td>
<td><p>RemoteHost is the neighbor&#39;s name as given via &#39;System Name TLV&#39; field of a LLDP packet.
Usually this is simply the neighbor&#39;s hostname. </p></td>
</tr>

<tr>
<td>local_port</td>
<td><a href="#string">string</a></td>
<td></td>
<td><p>LocalPort is the name of the local port that is connected to the neighbor. </p></td>
</tr>

<tr>
<td>remote_port</td>
<td><a href="#string">string</a></td>
<td></td>
<td><p>RemotePort is the neighbor&#39;s port name as sent via `Port Description TLV`.
Don&#39;t mix it up with `Port ID TLV`. </p></td>
</tr>

</tbody>
</table>





<h3 id="metalstack.infra.v2.SwitchServiceGetRequest">SwitchServiceGetRequest</h3>
<p>SwitchServiceGetRequest.</p>

Expand Down Expand Up @@ -21095,6 +21219,20 @@ <h3 id="metalstack.infra.v2.SwitchServiceHeartbeatRequest">SwitchServiceHeartbea
<td><p>BgpPortStates maps port identifiers to the respective port&#39;s BGP state. </p></td>
</tr>

<tr>
<td>bgp_routes</td>
<td><a href="#metalstack.infra.v2.BGPRoute">BGPRoute</a></td>
<td>repeated</td>
<td><p>BGPRoutes collected on the switch. </p></td>
</tr>

<tr>
<td>lldp_neighbors</td>
<td><a href="#metalstack.infra.v2.LLDPNeighbor">LLDPNeighbor</a></td>
<td>repeated</td>
<td><p>LLDPNeighbors known to the switch. </p></td>
</tr>

</tbody>
</table>

Expand Down
Loading
Loading