Skip to content

Commit 329b835

Browse files
authored
Make switch port desired state optional (#62)
1 parent a32bc9f commit 329b835

File tree

4 files changed

+28
-25
lines changed

4 files changed

+28
-25
lines changed

doc/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10261,7 +10261,7 @@ <h3 id="metalstack.api.v2.NicState">NicState</h3>
1026110261
<tr>
1026210262
<td>desired</td>
1026310263
<td><a href="#metalstack.api.v2.SwitchPortStatus">SwitchPortStatus</a></td>
10264-
<td></td>
10264+
<td>optional</td>
1026510265
<td><p>Desired is the desired port state. </p></td>
1026610266
</tr>
1026710267

go/metalstack/api/v2/switch.pb.go

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

proto/metalstack/api/v2/switch.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ message SwitchBGPPortState {
104104
// NicState represents the current state of a switch port.
105105
message NicState {
106106
// Desired is the desired port state.
107-
SwitchPortStatus desired = 1 [(buf.validate.field).enum.defined_only = true];
107+
optional SwitchPortStatus desired = 1 [(buf.validate.field).enum.defined_only = true];
108108
// Actual is the actual port state.
109109
SwitchPortStatus actual = 2 [(buf.validate.field).enum.defined_only = true];
110110
}

python/metalstack/api/v2/switch_pb2.py

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

0 commit comments

Comments
 (0)