Skip to content
Draft
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
139 changes: 139 additions & 0 deletions doc/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1817,6 +1817,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 @@ -1904,6 +1908,10 @@ <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.SwitchServiceRegisterRequest"><span class="badge">M</span>SwitchServiceRegisterRequest</a>
</li>
Expand All @@ -1912,6 +1920,14 @@ <h2>Table of Contents</h2>
<a href="#metalstack.infra.v2.SwitchServiceRegisterResponse"><span class="badge">M</span>SwitchServiceRegisterResponse</a>
</li>

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

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




Expand Down Expand Up @@ -17617,6 +17633,13 @@ <h3 id="metalstack.api.v2.Switch">Switch</h3>
<td><p>Partition the switch belongs to </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>

<tr>
<td>replace_mode</td>
<td><a href="#metalstack.api.v2.SwitchReplaceMode">SwitchReplaceMode</a></td>
Expand Down Expand Up @@ -17971,6 +17994,53 @@ <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_MGMTLEAF</td>
<td>4</td>
<td><p>SWITCH_TYPE_MGMTLEAF is a special type of leaf used only for management tasks</p></td>
</tr>

<tr>
<td>SWITCH_TYPE_MGMTSPINE</td>
<td>5</td>
<td><p>SWITCH_TYPE_MGMTSPINE is a special type of spine used only for management tasks</p></td>
</tr>

</tbody>
</table>




Expand Down Expand Up @@ -18269,6 +18339,30 @@ <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.SwitchServiceRegisterRequest">SwitchServiceRegisterRequest</h3>
<p>SwitchServiceRegisterRequest</p>

Expand Down Expand Up @@ -18317,6 +18411,44 @@ <h3 id="metalstack.infra.v2.SwitchServiceRegisterResponse">SwitchServiceRegister



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


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

<tr>
<td>switch_id</td>
<td><a href="#string">string</a></td>
<td></td>
<td><p>Switch ID of the switch that reports its routes </p></td>
</tr>

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

</tbody>
</table>





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








Expand All @@ -18338,6 +18470,13 @@ <h3 id="metalstack.infra.v2.SwitchService">SwitchService</h3>
<td><p>Register a switch</p></td>
</tr>

<tr>
<td>ReportBGPRoutes</td>
<td><a href="#metalstack.infra.v2.SwitchServiceReportBGPRoutesRequest">SwitchServiceReportBGPRoutesRequest</a></td>
<td><a href="#metalstack.infra.v2.SwitchServiceReportBGPRoutesResponse">SwitchServiceReportBGPRoutesResponse</a></td>
<td><p>Report BGP routes of a switch</p></td>
</tr>

</tbody>
</table>

Expand Down
133 changes: 109 additions & 24 deletions go/metalstack/api/v2/switch.pb.go

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

Loading
Loading