Skip to content

Commit

Permalink
Update auto generated go snappi
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Apr 20, 2023
1 parent a78bb9d commit e6c0a5b
Show file tree
Hide file tree
Showing 11 changed files with 49,346 additions and 19,720 deletions.
3,315 changes: 1,913 additions & 1,402 deletions gosnappi/gosnappi.go

Large diffs are not rendered by default.

16 changes: 16 additions & 0 deletions gosnappi/httpapi/controllers/control_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,8 @@ func (ctrl *controlController) responseSetControlActionError(w http.ResponseWrit
SetTransmitState: POST /control/transmit
Description: Deprecated: Please use `set_control_state` with `traffic.flow_transmit` choice instead
Deprecated: Please use `set_control_state` with `traffic.flow_transmit` choice instead
Updates the state of configuration resources on the traffic generator.
The Response.Warnings in the Success response is available for implementers to disclose additional information about a state change including any implicit changes that are outside the scope of the state change.
*/
Expand Down Expand Up @@ -256,6 +258,8 @@ func (ctrl *controlController) responseSetTransmitStateError(w http.ResponseWrit
SetLinkState: POST /control/link
Description: Deprecated: Please use `set_control_state` with `port.link` choice instead
Deprecated: Please use `set_control_state` with `port.link` choice instead
Updates the state of configuration resources on the traffic generator.
*/
func (ctrl *controlController) SetLinkState(w http.ResponseWriter, r *http.Request) {
Expand Down Expand Up @@ -329,6 +333,8 @@ func (ctrl *controlController) responseSetLinkStateError(w http.ResponseWriter,
SetCaptureState: POST /control/capture
Description: Deprecated: Please use `set_control_state` with `port.capture` choice instead
Deprecated: Please use `set_control_state` with `port.capture` choice instead
Updates the state of configuration resources on the traffic generator.
*/
func (ctrl *controlController) SetCaptureState(w http.ResponseWriter, r *http.Request) {
Expand Down Expand Up @@ -402,6 +408,8 @@ func (ctrl *controlController) responseSetCaptureStateError(w http.ResponseWrite
UpdateFlows: POST /control/flows
Description: Deprecated: Please use `update_config` with `flow` choice instead
Deprecated: Please use `update_config` with `flow` choice instead
Updates flow properties without disruption of transmit state.
*/
func (ctrl *controlController) UpdateFlows(w http.ResponseWriter, r *http.Request) {
Expand Down Expand Up @@ -472,6 +480,8 @@ func (ctrl *controlController) responseUpdateFlowsError(w http.ResponseWriter, e
SetRouteState: POST /control/routes
Description: Deprecated: Please use `set_control_state` with `protocol.route` choice instead
Deprecated: Please use `set_control_state` with `protocol.route` choice instead
Updates the state of configuration resources on the traffic generator.
*/
func (ctrl *controlController) SetRouteState(w http.ResponseWriter, r *http.Request) {
Expand Down Expand Up @@ -545,6 +555,8 @@ func (ctrl *controlController) responseSetRouteStateError(w http.ResponseWriter,
SendPing: POST /control/ping
Description: Deprecated: Please use `set_control_action` with `protocol.ipv*.ping` choice instead
Deprecated: Please use `set_control_action` with `protocol.ipv*.ping` choice instead
API to send an IPv4 and/or IPv6 ICMP Echo Request(s) between endpoints. For each endpoint 1 ping packet will be sent and API shall wait for ping response to either be successful or timeout. The API wait timeout for each request is 300ms.
*/
func (ctrl *controlController) SendPing(w http.ResponseWriter, r *http.Request) {
Expand Down Expand Up @@ -615,6 +627,8 @@ func (ctrl *controlController) responseSendPingError(w http.ResponseWriter, erro
SetProtocolState: POST /control/protocols
Description: Deprecated: Please use `set_control_state` with `protocol.all` choice instead
Deprecated: Please use `set_control_state` with `protocol.all` choice instead
Sets all configured protocols to `start` or `stop` state.
*/
func (ctrl *controlController) SetProtocolState(w http.ResponseWriter, r *http.Request) {
Expand Down Expand Up @@ -688,6 +702,8 @@ func (ctrl *controlController) responseSetProtocolStateError(w http.ResponseWrit
SetDeviceState: POST /control/devices
Description: Deprecated: Please use `set_control_state` with `protocol` choice instead
Deprecated: Please use `set_control_state` with `protocol` choice instead
Set specific state/actions on device configuration resources on the traffic generator.
*/
func (ctrl *controlController) SetDeviceState(w http.ResponseWriter, r *http.Request) {
Expand Down
16 changes: 16 additions & 0 deletions gosnappi/httpapi/interfaces/control_interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ type ControlHandler interface {
SetTransmitState: POST /control/transmit
Description: Deprecated: Please use `set_control_state` with `traffic.flow_transmit` choice instead
Deprecated: Please use `set_control_state` with `traffic.flow_transmit` choice instead
Updates the state of configuration resources on the traffic generator.
The Response.Warnings in the Success response is available for implementers to disclose additional information about a state change including any implicit changes that are outside the scope of the state change.
*/
Expand All @@ -46,48 +48,62 @@ type ControlHandler interface {
SetLinkState: POST /control/link
Description: Deprecated: Please use `set_control_state` with `port.link` choice instead
Deprecated: Please use `set_control_state` with `port.link` choice instead
Updates the state of configuration resources on the traffic generator.
*/
SetLinkState(rbody gosnappi.LinkState, r *http.Request) (gosnappi.SetLinkStateResponse, error)
/*
SetCaptureState: POST /control/capture
Description: Deprecated: Please use `set_control_state` with `port.capture` choice instead
Deprecated: Please use `set_control_state` with `port.capture` choice instead
Updates the state of configuration resources on the traffic generator.
*/
SetCaptureState(rbody gosnappi.CaptureState, r *http.Request) (gosnappi.SetCaptureStateResponse, error)
/*
UpdateFlows: POST /control/flows
Description: Deprecated: Please use `update_config` with `flow` choice instead
Deprecated: Please use `update_config` with `flow` choice instead
Updates flow properties without disruption of transmit state.
*/
UpdateFlows(rbody gosnappi.FlowsUpdate, r *http.Request) (gosnappi.UpdateFlowsResponse, error)
/*
SetRouteState: POST /control/routes
Description: Deprecated: Please use `set_control_state` with `protocol.route` choice instead
Deprecated: Please use `set_control_state` with `protocol.route` choice instead
Updates the state of configuration resources on the traffic generator.
*/
SetRouteState(rbody gosnappi.RouteState, r *http.Request) (gosnappi.SetRouteStateResponse, error)
/*
SendPing: POST /control/ping
Description: Deprecated: Please use `set_control_action` with `protocol.ipv*.ping` choice instead
Deprecated: Please use `set_control_action` with `protocol.ipv*.ping` choice instead
API to send an IPv4 and/or IPv6 ICMP Echo Request(s) between endpoints. For each endpoint 1 ping packet will be sent and API shall wait for ping response to either be successful or timeout. The API wait timeout for each request is 300ms.
*/
SendPing(rbody gosnappi.PingRequest, r *http.Request) (gosnappi.SendPingResponse, error)
/*
SetProtocolState: POST /control/protocols
Description: Deprecated: Please use `set_control_state` with `protocol.all` choice instead
Deprecated: Please use `set_control_state` with `protocol.all` choice instead
Sets all configured protocols to `start` or `stop` state.
*/
SetProtocolState(rbody gosnappi.ProtocolState, r *http.Request) (gosnappi.SetProtocolStateResponse, error)
/*
SetDeviceState: POST /control/devices
Description: Deprecated: Please use `set_control_state` with `protocol` choice instead
Deprecated: Please use `set_control_state` with `protocol` choice instead
Set specific state/actions on device configuration resources on the traffic generator.
*/
SetDeviceState(rbody gosnappi.DeviceState, r *http.Request) (gosnappi.SetDeviceStateResponse, error)
Expand Down
Loading

0 comments on commit e6c0a5b

Please sign in to comment.