Skip to content

Commit

Permalink
Merge branch 'dhcpv4_support' of https://github.com/open-traffic-gene…
Browse files Browse the repository at this point in the history
…rator/snappi into dhcpv4_support
  • Loading branch information
rudranil-das committed May 13, 2024
2 parents 4e0d0c2 + a2e1a1d commit b8b1610
Show file tree
Hide file tree
Showing 9 changed files with 10,193 additions and 10,192 deletions.
2 changes: 1 addition & 1 deletion gosnappi/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ require (
github.com/gorilla/mux v1.8.1
github.com/stretchr/testify v1.9.0
google.golang.org/grpc v1.63.2
google.golang.org/protobuf v1.33.0
google.golang.org/protobuf v1.34.1
)
3 changes: 2 additions & 1 deletion gosnappi/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -2514,8 +2514,9 @@ google.golang.org/protobuf v1.29.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqw
google.golang.org/protobuf v1.30.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
google.golang.org/protobuf v1.31.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
google.golang.org/protobuf v1.32.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos=
google.golang.org/protobuf v1.33.0 h1:uNO2rsAINq/JlFpSdYEKIZ0uKD/R9cpdv0T+yoGwGmI=
google.golang.org/protobuf v1.33.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos=
google.golang.org/protobuf v1.34.1 h1:9ddQBjfCyZPOHPUiPxpYESBLc+T8P3E+Vo4IbKZgFWg=
google.golang.org/protobuf v1.34.1/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos=
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
82 changes: 41 additions & 41 deletions gosnappi/gosnappi.go
Original file line number Diff line number Diff line change
Expand Up @@ -57371,12 +57371,12 @@ type Dhcpv4InterfaceState interface {
validateToAndFrom() error
validateObj(vObj *validation, set_default bool)
setDefault()
// DhcpClientName returns string, set in Dhcpv4InterfaceState.
DhcpClientName() string
// SetDhcpClientName assigns string provided by user to Dhcpv4InterfaceState
SetDhcpClientName(value string) Dhcpv4InterfaceState
// HasDhcpClientName checks if DhcpClientName has been set in Dhcpv4InterfaceState
HasDhcpClientName() bool
// DhcpClientNames returns string, set in Dhcpv4InterfaceState.
DhcpClientNames() string
// SetDhcpClientNames assigns string provided by user to Dhcpv4InterfaceState
SetDhcpClientNames(value string) Dhcpv4InterfaceState
// HasDhcpClientNames checks if DhcpClientNames has been set in Dhcpv4InterfaceState
HasDhcpClientNames() bool
// Ipv4Address returns string, set in Dhcpv4InterfaceState.
Ipv4Address() string
// SetIpv4Address assigns string provided by user to Dhcpv4InterfaceState
Expand Down Expand Up @@ -57416,24 +57416,24 @@ type Dhcpv4InterfaceState interface {
}

// The name of a DHCPv4 Client.
// DhcpClientName returns a string
func (obj *dhcpv4InterfaceState) DhcpClientName() string {
// DhcpClientNames returns a string
func (obj *dhcpv4InterfaceState) DhcpClientNames() string {

return *obj.obj.DhcpClientName
return *obj.obj.DhcpClientNames

}

// The name of a DHCPv4 Client.
// DhcpClientName returns a string
func (obj *dhcpv4InterfaceState) HasDhcpClientName() bool {
return obj.obj.DhcpClientName != nil
// DhcpClientNames returns a string
func (obj *dhcpv4InterfaceState) HasDhcpClientNames() bool {
return obj.obj.DhcpClientNames != nil
}

// The name of a DHCPv4 Client.
// SetDhcpClientName sets the string value in the Dhcpv4InterfaceState object
func (obj *dhcpv4InterfaceState) SetDhcpClientName(value string) Dhcpv4InterfaceState {
// SetDhcpClientNames sets the string value in the Dhcpv4InterfaceState object
func (obj *dhcpv4InterfaceState) SetDhcpClientNames(value string) Dhcpv4InterfaceState {

obj.obj.DhcpClientName = &value
obj.obj.DhcpClientNames = &value
return obj
}

Expand Down Expand Up @@ -393415,12 +393415,12 @@ type BgpAttributesCommunity interface {
setChoice(value BgpAttributesCommunityChoiceEnum) BgpAttributesCommunity
// getter for NoLlgr to set choice.
NoLlgr()
// getter for NoExportSubconfed to set choice.
NoExportSubconfed()
// getter for NoAdvertised to set choice.
NoAdvertised()
// getter for NoExport to set choice.
NoExport()
// getter for NoExportSubconfed to set choice.
NoExportSubconfed()
// getter for LlgrStale to set choice.
LlgrStale()
// CustomCommunity returns BgpAttributesCustomCommunity, set in BgpAttributesCommunity.
Expand Down Expand Up @@ -393462,11 +393462,6 @@ 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 NoAdvertised to set choice
func (obj *bgpAttributesCommunity) NoAdvertised() {
obj.setChoice(BgpAttributesCommunityChoice.NO_ADVERTISED)
Expand All @@ -393477,6 +393472,11 @@ func (obj *bgpAttributesCommunity) NoExport() {
obj.setChoice(BgpAttributesCommunityChoice.NO_EXPORT)
}

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

// getter for LlgrStale to set choice
func (obj *bgpAttributesCommunity) LlgrStale() {
obj.setChoice(BgpAttributesCommunityChoice.LLGR_STALE)
Expand Down Expand Up @@ -415759,16 +415759,16 @@ type BgpAttributesSrPolicyExplicitNullPolicy interface {
setChoice(value BgpAttributesSrPolicyExplicitNullPolicyChoiceEnum) BgpAttributesSrPolicyExplicitNullPolicy
// HasChoice checks if Choice has been set in BgpAttributesSrPolicyExplicitNullPolicy
HasChoice() bool
// getter for DonotPush to set choice.
DonotPush()
// getter for Unknown to set choice.
Unknown()
// getter for PushIpv4AndIpv6 to set choice.
PushIpv4AndIpv6()
// getter for PushIpv6 to set choice.
PushIpv6()
// getter for DonotPush to set choice.
DonotPush()
// getter for PushIpv4 to set choice.
PushIpv4()
// getter for PushIpv6 to set choice.
PushIpv6()
}

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

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

// getter for Unknown to set choice
func (obj *bgpAttributesSrPolicyExplicitNullPolicy) Unknown() {
obj.setChoice(BgpAttributesSrPolicyExplicitNullPolicyChoice.UNKNOWN)
Expand All @@ -415807,16 +415802,21 @@ func (obj *bgpAttributesSrPolicyExplicitNullPolicy) PushIpv4AndIpv6() {
obj.setChoice(BgpAttributesSrPolicyExplicitNullPolicyChoice.PUSH_IPV4_AND_IPV6)
}

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

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

// 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 Expand Up @@ -421626,12 +421626,12 @@ type FlowRSVPLspTunnelFlag interface {
setChoice(value FlowRSVPLspTunnelFlagChoiceEnum) FlowRSVPLspTunnelFlag
// HasChoice checks if Choice has been set in FlowRSVPLspTunnelFlag
HasChoice() bool
// getter for SeStyleDesired to set choice.
SeStyleDesired()
// getter for LabelRecordingDesired to set choice.
LabelRecordingDesired()
// getter for LocalProtectionDesired to set choice.
LocalProtectionDesired()
// getter for SeStyleDesired to set choice.
SeStyleDesired()
}

type FlowRSVPLspTunnelFlagChoiceEnum string
Expand All @@ -421651,11 +421651,6 @@ func (obj *flowRSVPLspTunnelFlag) Choice() FlowRSVPLspTunnelFlagChoiceEnum {
return FlowRSVPLspTunnelFlagChoiceEnum(obj.obj.Choice.Enum().String())
}

// 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)
Expand All @@ -421666,6 +421661,11 @@ func (obj *flowRSVPLspTunnelFlag) LocalProtectionDesired() {
obj.setChoice(FlowRSVPLspTunnelFlagChoice.LOCAL_PROTECTION_DESIRED)
}

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

// description is TBD
// Choice returns a string
func (obj *flowRSVPLspTunnelFlag) HasChoice() bool {
Expand Down
Loading

0 comments on commit b8b1610

Please sign in to comment.