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 Sep 27, 2023
1 parent 6316a42 commit a54ed6e
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 4 deletions.
25 changes: 25 additions & 0 deletions gosnappi/gosnappi.go
Original file line number Diff line number Diff line change
Expand Up @@ -24167,6 +24167,16 @@ func (obj *layer1FlowControl) validateObj(vObj *validation, set_default bool) {
func (obj *layer1FlowControl) setDefault() {
var choices_set int = 0
var choice Layer1FlowControlChoiceEnum

if obj.obj.Ieee_802_1Qbb != nil {
choices_set += 1
choice = Layer1FlowControlChoice.IEEE_802_1QBB
}

if obj.obj.Ieee_802_3X != nil {
choices_set += 1
choice = Layer1FlowControlChoice.IEEE_802_3X
}
if choices_set == 0 {
if obj.obj.Choice == nil {
obj.SetChoice(Layer1FlowControlChoice.IEEE_802_1QBB)
Expand Down Expand Up @@ -282849,6 +282859,21 @@ func (obj *bgpExtendedCommunity) setDefault() {
choices_set += 1
choice = BgpExtendedCommunityChoice.CUSTOM
}

if obj.obj.Transitive_2OctetAsType != nil {
choices_set += 1
choice = BgpExtendedCommunityChoice.TRANSITIVE_2OCTET_AS_TYPE
}

if obj.obj.Transitive_4OctetAsType != nil {
choices_set += 1
choice = BgpExtendedCommunityChoice.TRANSITIVE_4OCTET_AS_TYPE
}

if obj.obj.NonTransitive_2OctetAsType != nil {
choices_set += 1
choice = BgpExtendedCommunityChoice.NON_TRANSITIVE_2OCTET_AS_TYPE
}
if choices_set == 0 {
if obj.obj.Choice == nil {
obj.SetChoice(BgpExtendedCommunityChoice.TRANSITIVE_2OCTET_AS_TYPE)
Expand Down
8 changes: 4 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
--prefer-binary
requests
grpcio-tools~=1.54.2 ; python_version > '3.6'
grpcio~=1.54.2 ; python_version > '3.6'
grpcio~=1.35.0 ; python_version <= '3.6'
grpcio-tools~=1.35.0 ; python_version <= '3.6'
grpcio~=1.54.2 ; python_version > '3.6'
requests
protobuf~=3.15.0 ; python_version <= '3.6'
protobuf~=4.23.3 ; python_version > '3.6'
PyYAML
protobuf~=4.23.3 ; python_version > '3.6'
protobuf~=3.15.0 ; python_version <= '3.6'
semantic_version
urllib3

0 comments on commit a54ed6e

Please sign in to comment.