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, 2024
1 parent 2b2d0ae commit 8bd510a
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 45 deletions.
24 changes: 12 additions & 12 deletions gosnappi/bgp_attributes_community.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,16 +278,16 @@ type BgpAttributesCommunity interface {
Choice() BgpAttributesCommunityChoiceEnum
// setChoice assigns BgpAttributesCommunityChoiceEnum provided by user to BgpAttributesCommunity
setChoice(value BgpAttributesCommunityChoiceEnum) BgpAttributesCommunity
// getter for NoExportSubconfed to set choice.
NoExportSubconfed()
// getter for NoAdvertised to set choice.
NoAdvertised()
// getter for NoExport to set choice.
NoExport()
// getter for LlgrStale to set choice.
LlgrStale()
// getter for NoLlgr to set choice.
NoLlgr()
// getter for NoExportSubconfed to set choice.
NoExportSubconfed()
// getter for NoExport to set choice.
NoExport()
// CustomCommunity returns BgpAttributesCustomCommunity, set in BgpAttributesCommunity.
// BgpAttributesCustomCommunity is user defined COMMUNITY attribute containing 2 byte AS and custom 2 byte value defined by the administrator of the domain.
CustomCommunity() BgpAttributesCustomCommunity
Expand Down Expand Up @@ -322,16 +322,16 @@ func (obj *bgpAttributesCommunity) Choice() BgpAttributesCommunityChoiceEnum {
return BgpAttributesCommunityChoiceEnum(obj.obj.Choice.Enum().String())
}

// getter for NoExportSubconfed to set choice
func (obj *bgpAttributesCommunity) NoExportSubconfed() {
obj.setChoice(BgpAttributesCommunityChoice.NO_EXPORT_SUBCONFED)
}

// getter for NoAdvertised to set choice
func (obj *bgpAttributesCommunity) NoAdvertised() {
obj.setChoice(BgpAttributesCommunityChoice.NO_ADVERTISED)
}

// getter for NoExport to set choice
func (obj *bgpAttributesCommunity) NoExport() {
obj.setChoice(BgpAttributesCommunityChoice.NO_EXPORT)
}

// getter for LlgrStale to set choice
func (obj *bgpAttributesCommunity) LlgrStale() {
obj.setChoice(BgpAttributesCommunityChoice.LLGR_STALE)
Expand All @@ -342,9 +342,9 @@ func (obj *bgpAttributesCommunity) NoLlgr() {
obj.setChoice(BgpAttributesCommunityChoice.NO_LLGR)
}

// getter for NoExportSubconfed to set choice
func (obj *bgpAttributesCommunity) NoExportSubconfed() {
obj.setChoice(BgpAttributesCommunityChoice.NO_EXPORT_SUBCONFED)
// getter for NoExport to set choice
func (obj *bgpAttributesCommunity) NoExport() {
obj.setChoice(BgpAttributesCommunityChoice.NO_EXPORT)
}

func (obj *bgpAttributesCommunity) setChoice(value BgpAttributesCommunityChoiceEnum) BgpAttributesCommunity {
Expand Down
28 changes: 14 additions & 14 deletions gosnappi/bgp_attributes_sr_policy_explicit_null_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,16 +272,16 @@ type BgpAttributesSrPolicyExplicitNullPolicy interface {
setChoice(value BgpAttributesSrPolicyExplicitNullPolicyChoiceEnum) BgpAttributesSrPolicyExplicitNullPolicy
// HasChoice checks if Choice has been set in BgpAttributesSrPolicyExplicitNullPolicy
HasChoice() bool
// getter for Unknown to set choice.
Unknown()
// getter for DonotPush to set choice.
DonotPush()
// getter for PushIpv6 to set choice.
PushIpv6()
// getter for PushIpv4 to set choice.
PushIpv4()
// getter for PushIpv4AndIpv6 to set choice.
PushIpv4AndIpv6()
// getter for Unknown to set choice.
Unknown()
// getter for PushIpv6 to set choice.
PushIpv6()
}

type BgpAttributesSrPolicyExplicitNullPolicyChoiceEnum string
Expand All @@ -305,21 +305,11 @@ func (obj *bgpAttributesSrPolicyExplicitNullPolicy) Choice() BgpAttributesSrPoli
return BgpAttributesSrPolicyExplicitNullPolicyChoiceEnum(obj.obj.Choice.Enum().String())
}

// getter for Unknown to set choice
func (obj *bgpAttributesSrPolicyExplicitNullPolicy) Unknown() {
obj.setChoice(BgpAttributesSrPolicyExplicitNullPolicyChoice.UNKNOWN)
}

// getter for DonotPush to set choice
func (obj *bgpAttributesSrPolicyExplicitNullPolicy) DonotPush() {
obj.setChoice(BgpAttributesSrPolicyExplicitNullPolicyChoice.DONOT_PUSH)
}

// getter for PushIpv6 to set choice
func (obj *bgpAttributesSrPolicyExplicitNullPolicy) PushIpv6() {
obj.setChoice(BgpAttributesSrPolicyExplicitNullPolicyChoice.PUSH_IPV6)
}

// getter for PushIpv4 to set choice
func (obj *bgpAttributesSrPolicyExplicitNullPolicy) PushIpv4() {
obj.setChoice(BgpAttributesSrPolicyExplicitNullPolicyChoice.PUSH_IPV4)
Expand All @@ -330,6 +320,16 @@ func (obj *bgpAttributesSrPolicyExplicitNullPolicy) PushIpv4AndIpv6() {
obj.setChoice(BgpAttributesSrPolicyExplicitNullPolicyChoice.PUSH_IPV4_AND_IPV6)
}

// getter for Unknown to set choice
func (obj *bgpAttributesSrPolicyExplicitNullPolicy) Unknown() {
obj.setChoice(BgpAttributesSrPolicyExplicitNullPolicyChoice.UNKNOWN)
}

// getter for PushIpv6 to set choice
func (obj *bgpAttributesSrPolicyExplicitNullPolicy) PushIpv6() {
obj.setChoice(BgpAttributesSrPolicyExplicitNullPolicyChoice.PUSH_IPV6)
}

// The Explicit NULL Label policy.
// Choice returns a string
func (obj *bgpAttributesSrPolicyExplicitNullPolicy) HasChoice() bool {
Expand Down
14 changes: 7 additions & 7 deletions gosnappi/flow_rsvp_lsp_tunnel_flag.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,10 +270,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 @@ -295,16 +295,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
14 changes: 7 additions & 7 deletions gosnappi/metrics_response.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,10 +298,10 @@ type MetricsResponse interface {
setChoice(value MetricsResponseChoiceEnum) MetricsResponse
// HasChoice checks if Choice has been set in MetricsResponse
HasChoice() bool
// getter for Dhcpv4Client to set choice.
Dhcpv4Client()
// getter for Dhcpv4Server to set choice.
Dhcpv4Server()
// getter for Dhcpv4Client to set choice.
Dhcpv4Client()
// PortMetrics returns MetricsResponsePortMetricIterIter, set in MetricsResponse
PortMetrics() MetricsResponsePortMetricIter
// FlowMetrics returns MetricsResponseFlowMetricIterIter, set in MetricsResponse
Expand Down Expand Up @@ -360,16 +360,16 @@ func (obj *metricsResponse) Choice() MetricsResponseChoiceEnum {
return MetricsResponseChoiceEnum(obj.obj.Choice.Enum().String())
}

// getter for Dhcpv4Client to set choice
func (obj *metricsResponse) Dhcpv4Client() {
obj.setChoice(MetricsResponseChoice.DHCPV4_CLIENT)
}

// getter for Dhcpv4Server to set choice
func (obj *metricsResponse) Dhcpv4Server() {
obj.setChoice(MetricsResponseChoice.DHCPV4_SERVER)
}

// getter for Dhcpv4Client to set choice
func (obj *metricsResponse) Dhcpv4Client() {
obj.setChoice(MetricsResponseChoice.DHCPV4_CLIENT)
}

// description is TBD
// Choice returns a string
func (obj *metricsResponse) HasChoice() bool {
Expand Down
10 changes: 5 additions & 5 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
--prefer-binary
requests
PyYAML
grpcio-tools~=1.35.0 ; python_version <= '3.6'
grpcio~=1.35.0 ; python_version <= '3.6'
grpcio-tools~=1.59.0 ; python_version > '3.6'
grpcio~=1.59.0 ; python_version > '3.6'
grpcio~=1.35.0 ; python_version <= '3.6'
grpcio-tools~=1.35.0 ; python_version <= '3.6'
requests
protobuf~=3.15.0 ; python_version <= '3.6'
protobuf~=4.24.4 ; python_version > '3.6'
urllib3
PyYAML
semantic_version
urllib3

0 comments on commit 8bd510a

Please sign in to comment.