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 Jul 24, 2023
1 parent cd62272 commit 1d50fef
Show file tree
Hide file tree
Showing 9 changed files with 9,927 additions and 9,381 deletions.
4 changes: 2 additions & 2 deletions 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.4
google.golang.org/grpc v1.56.1
google.golang.org/protobuf v1.30.0
google.golang.org/grpc v1.56.2
google.golang.org/protobuf v1.31.0
)
7 changes: 4 additions & 3 deletions gosnappi/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1458,8 +1458,8 @@ google.golang.org/grpc v1.51.0/go.mod h1:wgNDFcnuBGmxLKI/qn4T+m5BtEBYXJPvibbUPsA
google.golang.org/grpc v1.52.3/go.mod h1:pu6fVzoFb+NBYNAvQL08ic+lvB2IojljRYuun5vorUY=
google.golang.org/grpc v1.53.0/go.mod h1:OnIrk0ipVdj4N5d9IUoFUx72/VlD7+jUsHwZgwSMQpw=
google.golang.org/grpc v1.54.0/go.mod h1:PUSEXI6iWghWaB6lXM4knEgpJNu2qUcKfDtNci3EC2g=
google.golang.org/grpc v1.56.1 h1:z0dNfjIl0VpaZ9iSVjA6daGatAYwPGstTjt5vkRMFkQ=
google.golang.org/grpc v1.56.1/go.mod h1:I9bI3vqKfayGqPUAwGdOSu7kt6oIJLixfffKrpXqQ9s=
google.golang.org/grpc v1.56.2 h1:fVRFRnXvU+x6C4IlHZewvJOVHoOv1TUuQyoRsYnB4bI=
google.golang.org/grpc v1.56.2/go.mod h1:I9bI3vqKfayGqPUAwGdOSu7kt6oIJLixfffKrpXqQ9s=
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 All @@ -1477,8 +1477,9 @@ google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQ
google.golang.org/protobuf v1.28.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
google.golang.org/protobuf v1.29.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
google.golang.org/protobuf v1.30.0 h1:kPPoIgf3TsEvrm0PFe15JQ+570QVxYzEvvHqChK+cng=
google.golang.org/protobuf v1.30.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
google.golang.org/protobuf v1.31.0 h1:g0LDEJHgrBl9N9r17Ru3sqWhkIx2NB67okBHPwC7hs8=
google.golang.org/protobuf v1.31.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk=
Expand Down
176 changes: 174 additions & 2 deletions gosnappi/gosnappi.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Open Traffic Generator API 0.11.10
/* Open Traffic Generator API 0.11.11
* 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.10").SetSdkVersion("0.11.16")
api.versionMeta.localVersion = NewVersion().SetApiSpecVersion("0.11.11").SetSdkVersion("0.11.17")
}

return api.versionMeta.localVersion
Expand Down Expand Up @@ -20470,6 +20470,7 @@ var Bgpv4MetricsRequestColumnNames = struct {
NOTIFICATIONS_SENT Bgpv4MetricsRequestColumnNamesEnum
NOTIFICATIONS_RECEIVED Bgpv4MetricsRequestColumnNamesEnum
FSM_STATE Bgpv4MetricsRequestColumnNamesEnum
END_OF_RIB_RECEIVED Bgpv4MetricsRequestColumnNamesEnum
}{
SESSION_STATE: Bgpv4MetricsRequestColumnNamesEnum("session_state"),
SESSION_FLAP_COUNT: Bgpv4MetricsRequestColumnNamesEnum("session_flap_count"),
Expand All @@ -20486,6 +20487,7 @@ var Bgpv4MetricsRequestColumnNames = struct {
NOTIFICATIONS_SENT: Bgpv4MetricsRequestColumnNamesEnum("notifications_sent"),
NOTIFICATIONS_RECEIVED: Bgpv4MetricsRequestColumnNamesEnum("notifications_received"),
FSM_STATE: Bgpv4MetricsRequestColumnNamesEnum("fsm_state"),
END_OF_RIB_RECEIVED: Bgpv4MetricsRequestColumnNamesEnum("end_of_rib_received"),
}

func (obj *bgpv4MetricsRequest) ColumnNames() []Bgpv4MetricsRequestColumnNamesEnum {
Expand Down Expand Up @@ -20804,6 +20806,7 @@ var Bgpv6MetricsRequestColumnNames = struct {
NOTIFICATIONS_SENT Bgpv6MetricsRequestColumnNamesEnum
NOTIFICATIONS_RECEIVED Bgpv6MetricsRequestColumnNamesEnum
FSM_STATE Bgpv6MetricsRequestColumnNamesEnum
END_OF_RIB_RECEIVED Bgpv6MetricsRequestColumnNamesEnum
}{
SESSION_STATE: Bgpv6MetricsRequestColumnNamesEnum("session_state"),
SESSION_FLAP_COUNT: Bgpv6MetricsRequestColumnNamesEnum("session_flap_count"),
Expand All @@ -20820,6 +20823,7 @@ var Bgpv6MetricsRequestColumnNames = struct {
NOTIFICATIONS_SENT: Bgpv6MetricsRequestColumnNamesEnum("notifications_sent"),
NOTIFICATIONS_RECEIVED: Bgpv6MetricsRequestColumnNamesEnum("notifications_received"),
FSM_STATE: Bgpv6MetricsRequestColumnNamesEnum("fsm_state"),
END_OF_RIB_RECEIVED: Bgpv6MetricsRequestColumnNamesEnum("end_of_rib_received"),
}

func (obj *bgpv6MetricsRequest) ColumnNames() []Bgpv6MetricsRequestColumnNamesEnum {
Expand Down Expand Up @@ -47816,6 +47820,12 @@ type Bgpv4Metric interface {
SetFsmState(value Bgpv4MetricFsmStateEnum) Bgpv4Metric
// HasFsmState checks if FsmState has been set in Bgpv4Metric
HasFsmState() bool
// EndOfRibReceived returns uint64, set in Bgpv4Metric.
EndOfRibReceived() uint64
// SetEndOfRibReceived assigns uint64 provided by user to Bgpv4Metric
SetEndOfRibReceived(value uint64) Bgpv4Metric
// HasEndOfRibReceived checks if EndOfRibReceived has been set in Bgpv4Metric
HasEndOfRibReceived() bool
}

// The name of a configured BGPv4 peer.
Expand Down Expand Up @@ -48202,6 +48212,28 @@ func (obj *bgpv4Metric) SetFsmState(value Bgpv4MetricFsmStateEnum) Bgpv4Metric {
return obj
}

// Number of End-of-RIB markers received indicating the completion of the initial routing update for a particular <AFI, SAFI> address family after the session is established. For the IPv4 unicast address family, the End-of-RIB marker is an UPDATE message with the minimum length. For any other address family, it is an UPDATE message that contains only the MP_UNREACH_NLRI attribute with no withdrawn routes for that <AFI, SAFI>.
// EndOfRibReceived returns a uint64
func (obj *bgpv4Metric) EndOfRibReceived() uint64 {

return *obj.obj.EndOfRibReceived

}

// Number of End-of-RIB markers received indicating the completion of the initial routing update for a particular <AFI, SAFI> address family after the session is established. For the IPv4 unicast address family, the End-of-RIB marker is an UPDATE message with the minimum length. For any other address family, it is an UPDATE message that contains only the MP_UNREACH_NLRI attribute with no withdrawn routes for that <AFI, SAFI>.
// EndOfRibReceived returns a uint64
func (obj *bgpv4Metric) HasEndOfRibReceived() bool {
return obj.obj.EndOfRibReceived != nil
}

// Number of End-of-RIB markers received indicating the completion of the initial routing update for a particular <AFI, SAFI> address family after the session is established. For the IPv4 unicast address family, the End-of-RIB marker is an UPDATE message with the minimum length. For any other address family, it is an UPDATE message that contains only the MP_UNREACH_NLRI attribute with no withdrawn routes for that <AFI, SAFI>.
// SetEndOfRibReceived sets the uint64 value in the Bgpv4Metric object
func (obj *bgpv4Metric) SetEndOfRibReceived(value uint64) Bgpv4Metric {

obj.obj.EndOfRibReceived = &value
return obj
}

func (obj *bgpv4Metric) validateObj(vObj *validation, set_default bool) {
if set_default {
obj.setDefault()
Expand Down Expand Up @@ -48529,6 +48561,12 @@ type Bgpv6Metric interface {
SetFsmState(value Bgpv6MetricFsmStateEnum) Bgpv6Metric
// HasFsmState checks if FsmState has been set in Bgpv6Metric
HasFsmState() bool
// EndOfRibReceived returns uint64, set in Bgpv6Metric.
EndOfRibReceived() uint64
// SetEndOfRibReceived assigns uint64 provided by user to Bgpv6Metric
SetEndOfRibReceived(value uint64) Bgpv6Metric
// HasEndOfRibReceived checks if EndOfRibReceived has been set in Bgpv6Metric
HasEndOfRibReceived() bool
}

// The name of a configured BGPv6 peer.
Expand Down Expand Up @@ -48915,6 +48953,28 @@ func (obj *bgpv6Metric) SetFsmState(value Bgpv6MetricFsmStateEnum) Bgpv6Metric {
return obj
}

// Number of End-of-RIB markers received indicating the completion of the initial routing update for a particular <AFI, SAFI> address family after the session is established. For the IPv4 unicast address family, the End-of-RIB marker is an UPDATE message with the minimum length. For any other address family, it is an UPDATE message that contains only the MP_UNREACH_NLRI attribute with no withdrawn routes for that <AFI, SAFI>.
// EndOfRibReceived returns a uint64
func (obj *bgpv6Metric) EndOfRibReceived() uint64 {

return *obj.obj.EndOfRibReceived

}

// Number of End-of-RIB markers received indicating the completion of the initial routing update for a particular <AFI, SAFI> address family after the session is established. For the IPv4 unicast address family, the End-of-RIB marker is an UPDATE message with the minimum length. For any other address family, it is an UPDATE message that contains only the MP_UNREACH_NLRI attribute with no withdrawn routes for that <AFI, SAFI>.
// EndOfRibReceived returns a uint64
func (obj *bgpv6Metric) HasEndOfRibReceived() bool {
return obj.obj.EndOfRibReceived != nil
}

// Number of End-of-RIB markers received indicating the completion of the initial routing update for a particular <AFI, SAFI> address family after the session is established. For the IPv4 unicast address family, the End-of-RIB marker is an UPDATE message with the minimum length. For any other address family, it is an UPDATE message that contains only the MP_UNREACH_NLRI attribute with no withdrawn routes for that <AFI, SAFI>.
// SetEndOfRibReceived sets the uint64 value in the Bgpv6Metric object
func (obj *bgpv6Metric) SetEndOfRibReceived(value uint64) Bgpv6Metric {

obj.obj.EndOfRibReceived = &value
return obj
}

func (obj *bgpv6Metric) validateObj(vObj *validation, set_default bool) {
if set_default {
obj.setDefault()
Expand Down Expand Up @@ -87974,6 +88034,18 @@ type BgpPrefixIpv4UnicastState interface {
SetAsPath(value ResultBgpAsPath) BgpPrefixIpv4UnicastState
// HasAsPath checks if AsPath has been set in BgpPrefixIpv4UnicastState
HasAsPath() bool
// LocalPreference returns uint32, set in BgpPrefixIpv4UnicastState.
LocalPreference() uint32
// SetLocalPreference assigns uint32 provided by user to BgpPrefixIpv4UnicastState
SetLocalPreference(value uint32) BgpPrefixIpv4UnicastState
// HasLocalPreference checks if LocalPreference has been set in BgpPrefixIpv4UnicastState
HasLocalPreference() bool
// MultiExitDiscriminator returns uint32, set in BgpPrefixIpv4UnicastState.
MultiExitDiscriminator() uint32
// SetMultiExitDiscriminator assigns uint32 provided by user to BgpPrefixIpv4UnicastState
SetMultiExitDiscriminator(value uint32) BgpPrefixIpv4UnicastState
// HasMultiExitDiscriminator checks if MultiExitDiscriminator has been set in BgpPrefixIpv4UnicastState
HasMultiExitDiscriminator() bool
setNil()
}

Expand Down Expand Up @@ -88238,6 +88310,50 @@ func (obj *bgpPrefixIpv4UnicastState) SetAsPath(value ResultBgpAsPath) BgpPrefix
return obj
}

// The local preference is a well-known attribute and the value is used for route selection. The route with the highest local preference value is preferred.
// LocalPreference returns a uint32
func (obj *bgpPrefixIpv4UnicastState) LocalPreference() uint32 {

return *obj.obj.LocalPreference

}

// The local preference is a well-known attribute and the value is used for route selection. The route with the highest local preference value is preferred.
// LocalPreference returns a uint32
func (obj *bgpPrefixIpv4UnicastState) HasLocalPreference() bool {
return obj.obj.LocalPreference != nil
}

// The local preference is a well-known attribute and the value is used for route selection. The route with the highest local preference value is preferred.
// SetLocalPreference sets the uint32 value in the BgpPrefixIpv4UnicastState object
func (obj *bgpPrefixIpv4UnicastState) SetLocalPreference(value uint32) BgpPrefixIpv4UnicastState {

obj.obj.LocalPreference = &value
return obj
}

// The multi exit discriminator (MED) is an optional non-transitive attribute and the value is used for route selection. The route with the lowest MED value is preferred.
// MultiExitDiscriminator returns a uint32
func (obj *bgpPrefixIpv4UnicastState) MultiExitDiscriminator() uint32 {

return *obj.obj.MultiExitDiscriminator

}

// The multi exit discriminator (MED) is an optional non-transitive attribute and the value is used for route selection. The route with the lowest MED value is preferred.
// MultiExitDiscriminator returns a uint32
func (obj *bgpPrefixIpv4UnicastState) HasMultiExitDiscriminator() bool {
return obj.obj.MultiExitDiscriminator != nil
}

// The multi exit discriminator (MED) is an optional non-transitive attribute and the value is used for route selection. The route with the lowest MED value is preferred.
// SetMultiExitDiscriminator sets the uint32 value in the BgpPrefixIpv4UnicastState object
func (obj *bgpPrefixIpv4UnicastState) SetMultiExitDiscriminator(value uint32) BgpPrefixIpv4UnicastState {

obj.obj.MultiExitDiscriminator = &value
return obj
}

func (obj *bgpPrefixIpv4UnicastState) validateObj(vObj *validation, set_default bool) {
if set_default {
obj.setDefault()
Expand Down Expand Up @@ -88562,6 +88678,18 @@ type BgpPrefixIpv6UnicastState interface {
SetAsPath(value ResultBgpAsPath) BgpPrefixIpv6UnicastState
// HasAsPath checks if AsPath has been set in BgpPrefixIpv6UnicastState
HasAsPath() bool
// LocalPreference returns uint32, set in BgpPrefixIpv6UnicastState.
LocalPreference() uint32
// SetLocalPreference assigns uint32 provided by user to BgpPrefixIpv6UnicastState
SetLocalPreference(value uint32) BgpPrefixIpv6UnicastState
// HasLocalPreference checks if LocalPreference has been set in BgpPrefixIpv6UnicastState
HasLocalPreference() bool
// MultiExitDiscriminator returns uint32, set in BgpPrefixIpv6UnicastState.
MultiExitDiscriminator() uint32
// SetMultiExitDiscriminator assigns uint32 provided by user to BgpPrefixIpv6UnicastState
SetMultiExitDiscriminator(value uint32) BgpPrefixIpv6UnicastState
// HasMultiExitDiscriminator checks if MultiExitDiscriminator has been set in BgpPrefixIpv6UnicastState
HasMultiExitDiscriminator() bool
setNil()
}

Expand Down Expand Up @@ -88826,6 +88954,50 @@ func (obj *bgpPrefixIpv6UnicastState) SetAsPath(value ResultBgpAsPath) BgpPrefix
return obj
}

// The local preference is a well-known attribute and the value is used for route selection. The route with the highest local preference value is preferred.
// LocalPreference returns a uint32
func (obj *bgpPrefixIpv6UnicastState) LocalPreference() uint32 {

return *obj.obj.LocalPreference

}

// The local preference is a well-known attribute and the value is used for route selection. The route with the highest local preference value is preferred.
// LocalPreference returns a uint32
func (obj *bgpPrefixIpv6UnicastState) HasLocalPreference() bool {
return obj.obj.LocalPreference != nil
}

// The local preference is a well-known attribute and the value is used for route selection. The route with the highest local preference value is preferred.
// SetLocalPreference sets the uint32 value in the BgpPrefixIpv6UnicastState object
func (obj *bgpPrefixIpv6UnicastState) SetLocalPreference(value uint32) BgpPrefixIpv6UnicastState {

obj.obj.LocalPreference = &value
return obj
}

// The multi exit discriminator (MED) is an optional non-transitive attribute and the value is used for route selection. The route with the lowest MED value is preferred.
// MultiExitDiscriminator returns a uint32
func (obj *bgpPrefixIpv6UnicastState) MultiExitDiscriminator() uint32 {

return *obj.obj.MultiExitDiscriminator

}

// The multi exit discriminator (MED) is an optional non-transitive attribute and the value is used for route selection. The route with the lowest MED value is preferred.
// MultiExitDiscriminator returns a uint32
func (obj *bgpPrefixIpv6UnicastState) HasMultiExitDiscriminator() bool {
return obj.obj.MultiExitDiscriminator != nil
}

// The multi exit discriminator (MED) is an optional non-transitive attribute and the value is used for route selection. The route with the lowest MED value is preferred.
// SetMultiExitDiscriminator sets the uint32 value in the BgpPrefixIpv6UnicastState object
func (obj *bgpPrefixIpv6UnicastState) SetMultiExitDiscriminator(value uint32) BgpPrefixIpv6UnicastState {

obj.obj.MultiExitDiscriminator = &value
return obj
}

func (obj *bgpPrefixIpv6UnicastState) validateObj(vObj *validation, set_default bool) {
if set_default {
obj.setDefault()
Expand Down
Loading

0 comments on commit 1d50fef

Please sign in to comment.