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
47 changes: 47 additions & 0 deletions doc/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1640,6 +1640,10 @@ <h2>Table of Contents</h2>
<a href="#metalstack.api.v2.SwitchOSVendor"><span class="badge">E</span>SwitchOSVendor</a>
</li>

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

<li>
<a href="#metalstack.api.v2.SwitchPortStatus"><span class="badge">E</span>SwitchPortStatus</a>
</li>
Expand Down Expand Up @@ -14149,6 +14153,13 @@ <h3 id="metalstack.api.v2.SwitchNic">SwitchNic</h3>
<td><p>BGPPortState represents the current BGP status of the port. </p></td>
</tr>

<tr>
<td>membership</td>
<td><a href="#metalstack.api.v2.SwitchPortMembership">SwitchPortMembership</a></td>
<td></td>
<td><p>Membership indicates whether the port is connected to an internal or external host. </p></td>
</tr>

</tbody>
</table>

Expand Down Expand Up @@ -14489,6 +14500,42 @@ <h3 id="metalstack.api.v2.SwitchOSVendor">SwitchOSVendor</h3>
</tbody>
</table>

<h3 id="metalstack.api.v2.SwitchPortMembership">SwitchPortMembership</h3>
<p>SwitchPortMembership indicates whether a switch port is connected to an internal or an external host.</p>
<table class="enum-table">
<thead>
<tr><td>Name</td><td>Number</td><td>Description</td></tr>
</thead>
<tbody>

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

<tr>
<td>SWITCH_PORT_MEMBERSHIP_UNMANAGED</td>
<td>1</td>
<td><p>SWITCH_PORT_MEMBERSHIP_UNMANAGED is a port that isn&#39;t connected to any host yet.</p></td>
</tr>

<tr>
<td>SWITCH_PORT_MEMBERSHIP_INTERNAL</td>
<td>2</td>
<td><p>SWITCH_PORT_MEMBERSHIP_INTERNAL is port that is connected to a host that is registered at the api, e.g. a registered machine.</p></td>
</tr>

<tr>
<td>SWITCH_PORT_MEMBERSHIP_EXTERNAL</td>
<td>3</td>
<td><p>SWITCH_PORT_MEMBERSHIP_EXTERNAL is port that is connected to a host that is not registered at the api.
This value allows connecting an external system to a network managed by us.</p></td>
</tr>

</tbody>
</table>

<h3 id="metalstack.api.v2.SwitchPortStatus">SwitchPortStatus</h3>
<p>SwitchPortStatus specifies the state of a switch port.</p>
<table class="enum-table">
Expand Down
177 changes: 127 additions & 50 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.

42 changes: 42 additions & 0 deletions js/metalstack/api/v2/switch_pb.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,12 @@ export type SwitchNic = Message<"metalstack.api.v2.SwitchNic"> & {
* @generated from field: optional metalstack.api.v2.SwitchBGPPortState bgp_port_state = 7;
*/
bgpPortState?: SwitchBGPPortState | undefined;
/**
* Membership indicates whether the port is connected to an internal or external host.
*
* @generated from field: metalstack.api.v2.SwitchPortMembership membership = 8;
*/
membership: SwitchPortMembership;
};
/**
* Describes the message metalstack.api.v2.SwitchNic.
Expand Down Expand Up @@ -633,3 +639,39 @@ export declare enum SwitchPortStatus {
* Describes the enum metalstack.api.v2.SwitchPortStatus.
*/
export declare const SwitchPortStatusSchema: GenEnum<SwitchPortStatus>;
/**
* SwitchPortMembership indicates whether a switch port is connected to an internal or an external host.
*
* @generated from enum metalstack.api.v2.SwitchPortMembership
*/
export declare enum SwitchPortMembership {
/**
* SWITCH_PORT_MEMBERSHIP_UNSPECIFIED is not specified.
*
* @generated from enum value: SWITCH_PORT_MEMBERSHIP_UNSPECIFIED = 0;
*/
UNSPECIFIED = 0,
/**
* SWITCH_PORT_MEMBERSHIP_UNMANAGED is a port that isn't connected to any host yet.
*
* @generated from enum value: SWITCH_PORT_MEMBERSHIP_UNMANAGED = 1;
*/
UNMANAGED = 1,
/**
* SWITCH_PORT_MEMBERSHIP_INTERNAL is port that is connected to a host that is registered at the api, e.g. a registered machine.
*
* @generated from enum value: SWITCH_PORT_MEMBERSHIP_INTERNAL = 2;
*/
INTERNAL = 2,
/**
* SWITCH_PORT_MEMBERSHIP_EXTERNAL is port that is connected to a host that is not registered at the api.
* This value allows connecting an external system to a network managed by us.
*
* @generated from enum value: SWITCH_PORT_MEMBERSHIP_EXTERNAL = 3;
*/
EXTERNAL = 3
}
/**
* Describes the enum metalstack.api.v2.SwitchPortMembership.
*/
export declare const SwitchPortMembershipSchema: GenEnum<SwitchPortMembership>;
Loading
Loading