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 Feb 26, 2024
1 parent b973e9e commit 1ce7eca
Show file tree
Hide file tree
Showing 6 changed files with 176 additions and 51 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.1
github.com/stretchr/testify v1.8.4
google.golang.org/grpc v1.61.1
google.golang.org/grpc v1.62.0
google.golang.org/protobuf v1.32.0
)
143 changes: 134 additions & 9 deletions gosnappi/go.sum

Large diffs are not rendered by default.

52 changes: 26 additions & 26 deletions gosnappi/gosnappi.go
Original file line number Diff line number Diff line change
Expand Up @@ -388813,10 +388813,10 @@ type FlowRSVPLspTunnelFlag interface {
setChoice(value FlowRSVPLspTunnelFlagChoiceEnum) FlowRSVPLspTunnelFlag
// HasChoice checks if Choice has been set in FlowRSVPLspTunnelFlag
HasChoice() bool
// getter for LabelRecordingDesired to set choice.
LabelRecordingDesired()
// getter for SeStyleDesired to set choice.
SeStyleDesired()
// getter for LabelRecordingDesired to set choice.
LabelRecordingDesired()
// getter for LocalProtectionDesired to set choice.
LocalProtectionDesired()
}
Expand All @@ -388838,16 +388838,16 @@ func (obj *flowRSVPLspTunnelFlag) Choice() FlowRSVPLspTunnelFlagChoiceEnum {
return FlowRSVPLspTunnelFlagChoiceEnum(obj.obj.Choice.Enum().String())
}

// getter for LabelRecordingDesired to set choice
func (obj *flowRSVPLspTunnelFlag) LabelRecordingDesired() {
obj.setChoice(FlowRSVPLspTunnelFlagChoice.LABEL_RECORDING_DESIRED)
}

// getter for SeStyleDesired to set choice
func (obj *flowRSVPLspTunnelFlag) SeStyleDesired() {
obj.setChoice(FlowRSVPLspTunnelFlagChoice.SE_STYLE_DESIRED)
}

// getter for LabelRecordingDesired to set choice
func (obj *flowRSVPLspTunnelFlag) LabelRecordingDesired() {
obj.setChoice(FlowRSVPLspTunnelFlagChoice.LABEL_RECORDING_DESIRED)
}

// getter for LocalProtectionDesired to set choice
func (obj *flowRSVPLspTunnelFlag) LocalProtectionDesired() {
obj.setChoice(FlowRSVPLspTunnelFlagChoice.LOCAL_PROTECTION_DESIRED)
Expand Down Expand Up @@ -411228,20 +411228,20 @@ func (obj *flowRSVPExplicitRouteLength) validateObj(vObj *validation, set_defaul

if obj.obj.Auto != nil {

if *obj.obj.Auto > 256 {
if *obj.obj.Auto > 255 {
vObj.validationErrors = append(
vObj.validationErrors,
fmt.Sprintf("0 <= FlowRSVPExplicitRouteLength.Auto <= 256 but Got %d", *obj.obj.Auto))
fmt.Sprintf("0 <= FlowRSVPExplicitRouteLength.Auto <= 255 but Got %d", *obj.obj.Auto))
}

}

if obj.obj.Value != nil {

if *obj.obj.Value > 256 {
if *obj.obj.Value > 255 {
vObj.validationErrors = append(
vObj.validationErrors,
fmt.Sprintf("0 <= FlowRSVPExplicitRouteLength.Value <= 256 but Got %d", *obj.obj.Value))
fmt.Sprintf("0 <= FlowRSVPExplicitRouteLength.Value <= 255 but Got %d", *obj.obj.Value))
}

}
Expand Down Expand Up @@ -412644,20 +412644,20 @@ func (obj *flowRSVPExplicitRouteASNumberLength) validateObj(vObj *validation, se

if obj.obj.Auto != nil {

if *obj.obj.Auto > 256 {
if *obj.obj.Auto > 15 {
vObj.validationErrors = append(
vObj.validationErrors,
fmt.Sprintf("0 <= FlowRSVPExplicitRouteASNumberLength.Auto <= 256 but Got %d", *obj.obj.Auto))
fmt.Sprintf("0 <= FlowRSVPExplicitRouteASNumberLength.Auto <= 15 but Got %d", *obj.obj.Auto))
}

}

if obj.obj.Value != nil {

if *obj.obj.Value > 256 {
if *obj.obj.Value > 15 {
vObj.validationErrors = append(
vObj.validationErrors,
fmt.Sprintf("0 <= FlowRSVPExplicitRouteASNumberLength.Value <= 256 but Got %d", *obj.obj.Value))
fmt.Sprintf("0 <= FlowRSVPExplicitRouteASNumberLength.Value <= 15 but Got %d", *obj.obj.Value))
}

}
Expand Down Expand Up @@ -413041,20 +413041,20 @@ func (obj *flowRSVPRouteRecordLength) validateObj(vObj *validation, set_default

if obj.obj.Auto != nil {

if *obj.obj.Auto > 256 {
if *obj.obj.Auto > 255 {
vObj.validationErrors = append(
vObj.validationErrors,
fmt.Sprintf("0 <= FlowRSVPRouteRecordLength.Auto <= 256 but Got %d", *obj.obj.Auto))
fmt.Sprintf("0 <= FlowRSVPRouteRecordLength.Auto <= 255 but Got %d", *obj.obj.Auto))
}

}

if obj.obj.Value != nil {

if *obj.obj.Value > 256 {
if *obj.obj.Value > 255 {
vObj.validationErrors = append(
vObj.validationErrors,
fmt.Sprintf("0 <= FlowRSVPRouteRecordLength.Value <= 256 but Got %d", *obj.obj.Value))
fmt.Sprintf("0 <= FlowRSVPRouteRecordLength.Value <= 255 but Got %d", *obj.obj.Value))
}

}
Expand Down Expand Up @@ -414348,10 +414348,10 @@ type FlowRSVPRecordRouteIPv4Flag interface {
setChoice(value FlowRSVPRecordRouteIPv4FlagChoiceEnum) FlowRSVPRecordRouteIPv4Flag
// HasChoice checks if Choice has been set in FlowRSVPRecordRouteIPv4Flag
HasChoice() bool
// getter for LocalProtectionAvailable to set choice.
LocalProtectionAvailable()
// getter for LocalProtectionInUse to set choice.
LocalProtectionInUse()
// getter for LocalProtectionAvailable to set choice.
LocalProtectionAvailable()
}

type FlowRSVPRecordRouteIPv4FlagChoiceEnum string
Expand All @@ -414369,16 +414369,16 @@ func (obj *flowRSVPRecordRouteIPv4Flag) Choice() FlowRSVPRecordRouteIPv4FlagChoi
return FlowRSVPRecordRouteIPv4FlagChoiceEnum(obj.obj.Choice.Enum().String())
}

// getter for LocalProtectionAvailable to set choice
func (obj *flowRSVPRecordRouteIPv4Flag) LocalProtectionAvailable() {
obj.setChoice(FlowRSVPRecordRouteIPv4FlagChoice.LOCAL_PROTECTION_AVAILABLE)
}

// getter for LocalProtectionInUse to set choice
func (obj *flowRSVPRecordRouteIPv4Flag) LocalProtectionInUse() {
obj.setChoice(FlowRSVPRecordRouteIPv4FlagChoice.LOCAL_PROTECTION_IN_USE)
}

// getter for LocalProtectionAvailable to set choice
func (obj *flowRSVPRecordRouteIPv4Flag) LocalProtectionAvailable() {
obj.setChoice(FlowRSVPRecordRouteIPv4FlagChoice.LOCAL_PROTECTION_AVAILABLE)
}

// description is TBD
// Choice returns a string
func (obj *flowRSVPRecordRouteIPv4Flag) HasChoice() bool {
Expand Down
6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
--prefer-binary
requests
grpcio-tools~=1.35.0 ; python_version <= '3.6'
grpcio-tools~=1.54.2 ; python_version > '3.6'
grpcio~=1.35.0 ; python_version <= '3.6'
grpcio~=1.54.2 ; python_version > '3.6'
grpcio-tools~=1.54.2 ; python_version > '3.6'
PyYAML
protobuf~=3.15.0 ; python_version <= '3.6'
protobuf~=4.23.3 ; python_version > '3.6'
protobuf~=3.15.0 ; python_version <= '3.6'
requests
semantic_version
urllib3
12 changes: 6 additions & 6 deletions snappi/docs/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8770,13 +8770,13 @@ components:
\ If OTG is unable to generate a value the default value must be used. "
type: integer
format: uint32
maximum: 256
maximum: 255
default: 8
x-field-uid: 2
value:
type: integer
format: uint32
maximum: 256
maximum: 255
default: 8
x-field-uid: 3
Flow.RSVPExplicitRouteASNumber.Length:
Expand All @@ -8801,13 +8801,13 @@ components:
\ If OTG is unable to generate a value the default value must be used. "
type: integer
format: uint32
maximum: 256
maximum: 15
default: 4
x-field-uid: 2
value:
type: integer
format: uint32
maximum: 256
maximum: 15
default: 4
x-field-uid: 3
Flow.RSVP.PathObjectsClassLabelRequest:
Expand Down Expand Up @@ -9368,13 +9368,13 @@ components:
OTG will provide a system generated value for this property. If OTG is unable to generate a value the default value must be used.
type: integer
format: uint32
maximum: 256
maximum: 255
default: 8
x-field-uid: 2
value:
type: integer
format: uint32
maximum: 256
maximum: 255
default: 8
x-field-uid: 3
Flow.RSVP.PathObjectsCustom:
Expand Down
12 changes: 6 additions & 6 deletions snappi/snappi.py
Original file line number Diff line number Diff line change
Expand Up @@ -99293,12 +99293,12 @@ class FlowRSVPExplicitRouteLength(OpenApiObject):
"auto": {
"type": int,
"format": "uint32",
"maximum": 256,
"maximum": 255,
},
"value": {
"type": int,
"format": "uint32",
"maximum": 256,
"maximum": 255,
},
} # type: Dict[str, str]

Expand Down Expand Up @@ -100016,12 +100016,12 @@ class FlowRSVPExplicitRouteASNumberLength(OpenApiObject):
"auto": {
"type": int,
"format": "uint32",
"maximum": 256,
"maximum": 15,
},
"value": {
"type": int,
"format": "uint32",
"maximum": 256,
"maximum": 15,
},
} # type: Dict[str, str]

Expand Down Expand Up @@ -106508,12 +106508,12 @@ class FlowRSVPRouteRecordLength(OpenApiObject):
"auto": {
"type": int,
"format": "uint32",
"maximum": 256,
"maximum": 255,
},
"value": {
"type": int,
"format": "uint32",
"maximum": 256,
"maximum": 255,
},
} # type: Dict[str, str]

Expand Down

0 comments on commit 1ce7eca

Please sign in to comment.