Skip to content

Commit 04c0d4c

Browse files
authored
Switch cannot be updated (#55)
1 parent e704529 commit 04c0d4c

File tree

5 files changed

+42
-67
lines changed

5 files changed

+42
-67
lines changed

doc/index.html

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11154,13 +11154,6 @@ <h3 id="metalstack.admin.v2.SwitchServiceUpdateRequest">SwitchServiceUpdateReque
1115411154
<td><p>Description of the switch. </p></td>
1115511155
</tr>
1115611156

11157-
<tr>
11158-
<td>rack_id</td>
11159-
<td><a href="#string">string</a></td>
11160-
<td>optional</td>
11161-
<td><p>Rack ID if the switch resides in a rack. </p></td>
11162-
</tr>
11163-
1116411157
<tr>
1116511158
<td>replace_mode</td>
1116611159
<td><a href="#metalstack.api.v2.SwitchReplaceMode">metalstack.api.v2.SwitchReplaceMode</a></td>

go/metalstack/admin/v2/switch.pb.go

Lines changed: 16 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

proto/metalstack/admin/v2/switch.proto

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -81,20 +81,18 @@ message SwitchServiceUpdateRequest {
8181
google.protobuf.Timestamp updated_at = 3;
8282
// Description of the switch.
8383
optional string description = 4 [(buf.validate.field).string.(metalstack.api.v2.is_description) = true];
84-
// Rack ID if the switch resides in a rack.
85-
optional string rack_id = 5 [(buf.validate.field).string.(metalstack.api.v2.is_name) = true];
8684
// Replace mode is used to mark a switch ready for replacement.
87-
optional metalstack.api.v2.SwitchReplaceMode replace_mode = 6 [(buf.validate.field).enum.defined_only = true];
85+
optional metalstack.api.v2.SwitchReplaceMode replace_mode = 5 [(buf.validate.field).enum.defined_only = true];
8886
// Management IP is the switch's IP for management access.
89-
optional string management_ip = 7 [(buf.validate.field).string.ip = true];
87+
optional string management_ip = 6 [(buf.validate.field).string.ip = true];
9088
// Management user is the user name to use for management access.
91-
optional string management_user = 8 [(buf.validate.field).string.(metalstack.api.v2.is_name) = true];
89+
optional string management_user = 7 [(buf.validate.field).string.(metalstack.api.v2.is_name) = true];
9290
// Console command is the command for accessing the switch's console.
93-
optional string console_command = 9 [(buf.validate.field).string.(metalstack.api.v2.is_description) = true];
91+
optional string console_command = 8 [(buf.validate.field).string.(metalstack.api.v2.is_description) = true];
9492
// Nics are the front panel ports of the switch.
95-
repeated metalstack.api.v2.SwitchNic nics = 10;
93+
repeated metalstack.api.v2.SwitchNic nics = 9;
9694
// SwitchOs is the OS running on the switch.
97-
optional metalstack.api.v2.SwitchOS os = 11;
95+
optional metalstack.api.v2.SwitchOS os = 10;
9896
}
9997

10098
// SwitchServiceUpdateResponse.

0 commit comments

Comments
 (0)