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 Mar 24, 2023
1 parent c56dc01 commit e941eb9
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 49 deletions.
2 changes: 1 addition & 1 deletion gosnappi/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ require (
github.com/ghodss/yaml v1.0.0
github.com/gorilla/mux v1.8.0
github.com/stretchr/testify v1.8.2
google.golang.org/grpc v1.53.0
google.golang.org/grpc v1.54.0
google.golang.org/protobuf v1.30.0
)
20 changes: 15 additions & 5 deletions gosnappi/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -632,6 +632,7 @@ golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/mod v0.5.0/go.mod h1:5OXOZSfqPIIbmVBIIKWRFfZjPR0E5r58TLhUjH0a2Ro=
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=
golang.org/x/mod v0.7.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
Expand Down Expand Up @@ -682,8 +683,10 @@ golang.org/x/net v0.0.0-20220909164309-bea034e7d591/go.mod h1:YDH+HFinaLZZlnHAfS
golang.org/x/net v0.0.0-20221012135044-0b7e1fb9d458/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk=
golang.org/x/net v0.0.0-20221014081412-f15817d10f9b/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk=
golang.org/x/net v0.2.0/go.mod h1:KqCZLdyyvdV855qA2rE3GC2aiw5xGR5TEjj8smXukLY=
golang.org/x/net v0.5.0 h1:GyT4nK/YDHSqa1c4753ouYCDajOYKTja9Xb/OHtgvSw=
golang.org/x/net v0.5.0/go.mod h1:DivGGAXEgPSlEBzxGzZI+ZLohi+xUj054jfeKui00ws=
golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs=
golang.org/x/net v0.8.0 h1:Zrh2ngAOFYneWTAIAPethzeaQLuHwhuBkuV6ZiRnUaQ=
golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc=
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
Expand Down Expand Up @@ -791,12 +794,16 @@ golang.org/x/sys v0.0.0-20220624220833-87e55d714810/go.mod h1:oPkhp1MJrh7nUepCBc
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.4.0 h1:Zr2JFtRQNX3BCZ8YtxRE9hNJYC8J6I1MVbMg6owUp18=
golang.org/x/sys v0.4.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.6.0 h1:MVltZSvRTcU2ljQOhs94SXPftV6DCNnZViHeQps87pQ=
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
golang.org/x/term v0.2.0/go.mod h1:TVmDHMZPmdnySmBfhjOoOdhjzdE1h4u1VwSiw2l1Nuc=
golang.org/x/term v0.4.0/go.mod h1:9P2UbLfCdcvo3p/nzKvsmas4TnlujnuoV9hGgYzW1lQ=
golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k=
golang.org/x/term v0.6.0/go.mod h1:m6U89DPEgQRMq3DNkDClhWw02AUbt2daBVO4cn4Hv9U=
golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
Expand All @@ -808,8 +815,10 @@ golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ=
golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
golang.org/x/text v0.6.0 h1:3XmdazWV+ubf7QgHSTWeykHOci5oeekaGJBLkrkaw4k=
golang.org/x/text v0.6.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
golang.org/x/text v0.8.0 h1:57P1ETyNKtuIjB4SRd15iJxuhj8Gc416Y78H3qgMh68=
golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=
golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
Expand Down Expand Up @@ -869,6 +878,7 @@ golang.org/x/tools v0.1.4/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=
golang.org/x/tools v0.3.0/go.mod h1:/rWhSS2+zyEVwoJf8YAX6L2f0ntZ7Kn/mGgAWcipA5k=
golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU=
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
Expand Down Expand Up @@ -1085,8 +1095,8 @@ google.golang.org/grpc v1.49.0/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCD
google.golang.org/grpc v1.50.0/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI=
google.golang.org/grpc v1.50.1/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI=
google.golang.org/grpc v1.51.0/go.mod h1:wgNDFcnuBGmxLKI/qn4T+m5BtEBYXJPvibbUPsAIPww=
google.golang.org/grpc v1.53.0 h1:LAv2ds7cmFV/XTS3XG1NneeENYrXGmorPxsBbptIjNc=
google.golang.org/grpc v1.53.0/go.mod h1:OnIrk0ipVdj4N5d9IUoFUx72/VlD7+jUsHwZgwSMQpw=
google.golang.org/grpc v1.54.0 h1:EhTqbhiYeixwWQtAEZAxmV9MGqcjEU2mFx52xCzNyag=
google.golang.org/grpc v1.54.0/go.mod h1:PUSEXI6iWghWaB6lXM4knEgpJNu2qUcKfDtNci3EC2g=
google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0/go.mod h1:6Kw0yEErY5E/yWrBtf03jp27GLLJujG4z/JK95pnjjw=
google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8=
google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0=
Expand Down
58 changes: 29 additions & 29 deletions gosnappi/gosnappi.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Open Traffic Generator API 0.11.2
/* Open Traffic Generator API 0.11.3
* Open Traffic Generator API defines a model-driven, vendor-neutral and standard
* interface for emulating layer 2-7 network devices and generating test traffic.
*
Expand Down Expand Up @@ -494,7 +494,7 @@ func (api *gosnappiApi) NewGetVersionResponse() GetVersionResponse {

func (api *gosnappiApi) GetLocalVersion() Version {
if api.versionMeta.localVersion == nil {
api.versionMeta.localVersion = NewVersion().SetApiSpecVersion("0.11.2").SetSdkVersion("0.11.2")
api.versionMeta.localVersion = NewVersion().SetApiSpecVersion("0.11.3").SetSdkVersion("0.11.3")
}

return api.versionMeta.localVersion
Expand Down Expand Up @@ -85777,10 +85777,10 @@ type ActionProtocolBgpInitiateGracefulRestart interface {
PeerNames() []string
// SetPeerNames assigns []string provided by user to ActionProtocolBgpInitiateGracefulRestart
SetPeerNames(value []string) ActionProtocolBgpInitiateGracefulRestart
// RestartDelay returns int32, set in ActionProtocolBgpInitiateGracefulRestart.
RestartDelay() int32
// SetRestartDelay assigns int32 provided by user to ActionProtocolBgpInitiateGracefulRestart
SetRestartDelay(value int32) ActionProtocolBgpInitiateGracefulRestart
// RestartDelay returns uint32, set in ActionProtocolBgpInitiateGracefulRestart.
RestartDelay() uint32
// SetRestartDelay assigns uint32 provided by user to ActionProtocolBgpInitiateGracefulRestart
SetRestartDelay(value uint32) ActionProtocolBgpInitiateGracefulRestart
// HasRestartDelay checks if RestartDelay has been set in ActionProtocolBgpInitiateGracefulRestart
HasRestartDelay() bool
}
Expand Down Expand Up @@ -85824,24 +85824,24 @@ func (obj *actionProtocolBgpInitiateGracefulRestart) SetPeerNames(value []string

// Duration (in seconds) after which selected BGP peers will initiate
// Graceful restart by sending the Open Message with Restart State bit set in the Graceful Restart capability.
// RestartDelay returns a int32
func (obj *actionProtocolBgpInitiateGracefulRestart) RestartDelay() int32 {
// RestartDelay returns a uint32
func (obj *actionProtocolBgpInitiateGracefulRestart) RestartDelay() uint32 {

return *obj.obj.RestartDelay

}

// Duration (in seconds) after which selected BGP peers will initiate
// Graceful restart by sending the Open Message with Restart State bit set in the Graceful Restart capability.
// RestartDelay returns a int32
// RestartDelay returns a uint32
func (obj *actionProtocolBgpInitiateGracefulRestart) HasRestartDelay() bool {
return obj.obj.RestartDelay != nil
}

// Duration (in seconds) after which selected BGP peers will initiate
// Graceful restart by sending the Open Message with Restart State bit set in the Graceful Restart capability.
// SetRestartDelay sets the int32 value in the ActionProtocolBgpInitiateGracefulRestart object
func (obj *actionProtocolBgpInitiateGracefulRestart) SetRestartDelay(value int32) ActionProtocolBgpInitiateGracefulRestart {
// SetRestartDelay sets the uint32 value in the ActionProtocolBgpInitiateGracefulRestart object
func (obj *actionProtocolBgpInitiateGracefulRestart) SetRestartDelay(value uint32) ActionProtocolBgpInitiateGracefulRestart {

obj.obj.RestartDelay = &value
return obj
Expand Down Expand Up @@ -174420,10 +174420,10 @@ type BgpGracefulRestart interface {
SetEnableGr(value bool) BgpGracefulRestart
// HasEnableGr checks if EnableGr has been set in BgpGracefulRestart
HasEnableGr() bool
// RestartTime returns int32, set in BgpGracefulRestart.
RestartTime() int32
// SetRestartTime assigns int32 provided by user to BgpGracefulRestart
SetRestartTime(value int32) BgpGracefulRestart
// RestartTime returns uint32, set in BgpGracefulRestart.
RestartTime() uint32
// SetRestartTime assigns uint32 provided by user to BgpGracefulRestart
SetRestartTime(value uint32) BgpGracefulRestart
// HasRestartTime checks if RestartTime has been set in BgpGracefulRestart
HasRestartTime() bool
// EnableLlgr returns bool, set in BgpGracefulRestart.
Expand All @@ -174432,10 +174432,10 @@ type BgpGracefulRestart interface {
SetEnableLlgr(value bool) BgpGracefulRestart
// HasEnableLlgr checks if EnableLlgr has been set in BgpGracefulRestart
HasEnableLlgr() bool
// StaleTime returns int32, set in BgpGracefulRestart.
StaleTime() int32
// SetStaleTime assigns int32 provided by user to BgpGracefulRestart
SetStaleTime(value int32) BgpGracefulRestart
// StaleTime returns uint32, set in BgpGracefulRestart.
StaleTime() uint32
// SetStaleTime assigns uint32 provided by user to BgpGracefulRestart
SetStaleTime(value uint32) BgpGracefulRestart
// HasStaleTime checks if StaleTime has been set in BgpGracefulRestart
HasStaleTime() bool
}
Expand Down Expand Up @@ -174463,22 +174463,22 @@ func (obj *bgpGracefulRestart) SetEnableGr(value bool) BgpGracefulRestart {
}

// This is the estimated duration (in seconds) it will take for the BGP session to be re-established after a restart. This can be used to speed up routing convergence by its peer in case the BGP speaker does not come back after a restart.
// RestartTime returns a int32
func (obj *bgpGracefulRestart) RestartTime() int32 {
// RestartTime returns a uint32
func (obj *bgpGracefulRestart) RestartTime() uint32 {

return *obj.obj.RestartTime

}

// This is the estimated duration (in seconds) it will take for the BGP session to be re-established after a restart. This can be used to speed up routing convergence by its peer in case the BGP speaker does not come back after a restart.
// RestartTime returns a int32
// RestartTime returns a uint32
func (obj *bgpGracefulRestart) HasRestartTime() bool {
return obj.obj.RestartTime != nil
}

// This is the estimated duration (in seconds) it will take for the BGP session to be re-established after a restart. This can be used to speed up routing convergence by its peer in case the BGP speaker does not come back after a restart.
// SetRestartTime sets the int32 value in the BgpGracefulRestart object
func (obj *bgpGracefulRestart) SetRestartTime(value int32) BgpGracefulRestart {
// SetRestartTime sets the uint32 value in the BgpGracefulRestart object
func (obj *bgpGracefulRestart) SetRestartTime(value uint32) BgpGracefulRestart {

obj.obj.RestartTime = &value
return obj
Expand Down Expand Up @@ -174518,8 +174518,8 @@ func (obj *bgpGracefulRestart) SetEnableLlgr(value bool) BgpGracefulRestart {
// Duration (in seconds) specifying how long stale information (for the AFI/SAFI)
// may be retained. This is a three byte field and is applicable
// only if 'enable_llgr' is set to 'true'.
// StaleTime returns a int32
func (obj *bgpGracefulRestart) StaleTime() int32 {
// StaleTime returns a uint32
func (obj *bgpGracefulRestart) StaleTime() uint32 {

return *obj.obj.StaleTime

Expand All @@ -174528,16 +174528,16 @@ func (obj *bgpGracefulRestart) StaleTime() int32 {
// Duration (in seconds) specifying how long stale information (for the AFI/SAFI)
// may be retained. This is a three byte field and is applicable
// only if 'enable_llgr' is set to 'true'.
// StaleTime returns a int32
// StaleTime returns a uint32
func (obj *bgpGracefulRestart) HasStaleTime() bool {
return obj.obj.StaleTime != nil
}

// Duration (in seconds) specifying how long stale information (for the AFI/SAFI)
// may be retained. This is a three byte field and is applicable
// only if 'enable_llgr' is set to 'true'.
// SetStaleTime sets the int32 value in the BgpGracefulRestart object
func (obj *bgpGracefulRestart) SetStaleTime(value int32) BgpGracefulRestart {
// SetStaleTime sets the uint32 value in the BgpGracefulRestart object
func (obj *bgpGracefulRestart) SetStaleTime(value uint32) BgpGracefulRestart {

obj.obj.StaleTime = &value
return obj
Expand Down
20 changes: 10 additions & 10 deletions gosnappi/otg/otg.pb.go

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

Loading

0 comments on commit e941eb9

Please sign in to comment.