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 6, 2024
1 parent 9f08e52 commit 7c5c409
Show file tree
Hide file tree
Showing 18 changed files with 28,136 additions and 70,876 deletions.
14 changes: 0 additions & 14 deletions gosnappi/action_protocol_bgp_initiate_graceful_restart.go
Original file line number Diff line number Diff line change
Expand Up @@ -299,13 +299,6 @@ type ActionProtocolBgpInitiateGracefulRestart interface {
// - /components/schemas/Bgp.V4Peer/properties/name
// - /components/schemas/Bgp.V6Peer/properties/name
//
<<<<<<< HEAD
=======
// x-constraint:
// - /components/schemas/Bgp.V4Peer/properties/name
// - /components/schemas/Bgp.V6Peer/properties/name
//
>>>>>>> main
// PeerNames returns a []string
func (obj *actionProtocolBgpInitiateGracefulRestart) PeerNames() []string {
if obj.obj.PeerNames == nil {
Expand All @@ -320,13 +313,6 @@ func (obj *actionProtocolBgpInitiateGracefulRestart) PeerNames() []string {
// - /components/schemas/Bgp.V4Peer/properties/name
// - /components/schemas/Bgp.V6Peer/properties/name
//
<<<<<<< HEAD
=======
// x-constraint:
// - /components/schemas/Bgp.V4Peer/properties/name
// - /components/schemas/Bgp.V6Peer/properties/name
//
>>>>>>> main
// SetPeerNames sets the []string value in the ActionProtocolBgpInitiateGracefulRestart object
func (obj *actionProtocolBgpInitiateGracefulRestart) SetPeerNames(value []string) ActionProtocolBgpInitiateGracefulRestart {

Expand Down
14 changes: 0 additions & 14 deletions gosnappi/action_protocol_bgp_notification.go
Original file line number Diff line number Diff line change
Expand Up @@ -359,13 +359,6 @@ type ActionProtocolBgpNotification interface {
// - /components/schemas/Bgp.V4Peer/properties/name
// - /components/schemas/Bgp.V6Peer/properties/name
//
<<<<<<< HEAD
=======
// x-constraint:
// - /components/schemas/Bgp.V4Peer/properties/name
// - /components/schemas/Bgp.V6Peer/properties/name
//
>>>>>>> main
// Names returns a []string
func (obj *actionProtocolBgpNotification) Names() []string {
if obj.obj.Names == nil {
Expand All @@ -380,13 +373,6 @@ func (obj *actionProtocolBgpNotification) Names() []string {
// - /components/schemas/Bgp.V4Peer/properties/name
// - /components/schemas/Bgp.V6Peer/properties/name
//
<<<<<<< HEAD
=======
// x-constraint:
// - /components/schemas/Bgp.V4Peer/properties/name
// - /components/schemas/Bgp.V6Peer/properties/name
//
>>>>>>> main
// SetNames sets the []string value in the ActionProtocolBgpNotification object
func (obj *actionProtocolBgpNotification) SetNames(value []string) ActionProtocolBgpNotification {

Expand Down
49 changes: 9 additions & 40 deletions gosnappi/bgp_attributes_community.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,25 +278,16 @@ type BgpAttributesCommunity interface {
Choice() BgpAttributesCommunityChoiceEnum
// setChoice assigns BgpAttributesCommunityChoiceEnum provided by user to BgpAttributesCommunity
setChoice(value BgpAttributesCommunityChoiceEnum) BgpAttributesCommunity
<<<<<<< HEAD
// getter for NoAdvertised to set choice.
NoAdvertised()
// getter for LlgrStale to set choice.
LlgrStale()
// getter for NoLlgr to set choice.
NoLlgr()
=======
>>>>>>> main
// getter for NoExport to set choice.
NoExport()
// getter for NoExportSubconfed to set choice.
NoExportSubconfed()
// getter for NoLlgr to set choice.
NoLlgr()
// getter for NoAdvertised to set choice.
NoAdvertised()
// getter for LlgrStale to set choice.
LlgrStale()
// getter for NoLlgr to set choice.
NoLlgr()
// 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 @@ -331,53 +322,31 @@ func (obj *bgpAttributesCommunity) Choice() BgpAttributesCommunityChoiceEnum {
return BgpAttributesCommunityChoiceEnum(obj.obj.Choice.Enum().String())
}

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

// getter for LlgrStale to set choice
func (obj *bgpAttributesCommunity) LlgrStale() {
obj.setChoice(BgpAttributesCommunityChoice.LLGR_STALE)
=======
// getter for NoExport to set choice
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)
>>>>>>> main
}

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

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

<<<<<<< HEAD
// getter for NoExport to set choice
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 NoAdvertised to set choice
func (obj *bgpAttributesCommunity) NoAdvertised() {
obj.setChoice(BgpAttributesCommunityChoice.NO_ADVERTISED)
}

// getter for LlgrStale to set choice
func (obj *bgpAttributesCommunity) LlgrStale() {
obj.setChoice(BgpAttributesCommunityChoice.LLGR_STALE)
>>>>>>> main
}

func (obj *bgpAttributesCommunity) setChoice(value BgpAttributesCommunityChoiceEnum) BgpAttributesCommunity {
intValue, ok := otg.BgpAttributesCommunity_Choice_Enum_value[string(value)]
if !ok {
Expand Down
36 changes: 7 additions & 29 deletions gosnappi/bgp_attributes_sr_policy_explicit_null_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,22 +272,14 @@ type BgpAttributesSrPolicyExplicitNullPolicy interface {
setChoice(value BgpAttributesSrPolicyExplicitNullPolicyChoiceEnum) BgpAttributesSrPolicyExplicitNullPolicy
// HasChoice checks if Choice has been set in BgpAttributesSrPolicyExplicitNullPolicy
HasChoice() bool
<<<<<<< HEAD
// getter for PushIpv6 to set choice.
PushIpv6()
=======
>>>>>>> main
// getter for PushIpv4 to set choice.
PushIpv4()
// getter for DonotPush to set choice.
DonotPush()
<<<<<<< HEAD
=======
// getter for PushIpv6 to set choice.
PushIpv6()
>>>>>>> main
// getter for Unknown to set choice.
Unknown()
// getter for DonotPush to set choice.
DonotPush()
// getter for PushIpv4AndIpv6 to set choice.
PushIpv4AndIpv6()
}
Expand All @@ -313,40 +305,26 @@ func (obj *bgpAttributesSrPolicyExplicitNullPolicy) Choice() BgpAttributesSrPoli
return BgpAttributesSrPolicyExplicitNullPolicyChoiceEnum(obj.obj.Choice.Enum().String())
}

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

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

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

<<<<<<< HEAD
// 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)
>>>>>>> main
}

// 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 PushIpv4AndIpv6 to set choice
func (obj *bgpAttributesSrPolicyExplicitNullPolicy) PushIpv4AndIpv6() {
obj.setChoice(BgpAttributesSrPolicyExplicitNullPolicyChoice.PUSH_IPV4_AND_IPV6)
Expand Down
25 changes: 0 additions & 25 deletions gosnappi/dhcpv6_client_options_duid_uuid_variant.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,21 +270,12 @@ type Dhcpv6ClientOptionsDuidUuidVariant interface {
setChoice(value Dhcpv6ClientOptionsDuidUuidVariantChoiceEnum) Dhcpv6ClientOptionsDuidUuidVariant
// HasChoice checks if Choice has been set in Dhcpv6ClientOptionsDuidUuidVariant
HasChoice() bool
<<<<<<< HEAD
// getter for VarReserved to set choice.
VarReserved()
// getter for Dce to set choice.
Dce()
// getter for Ncs to set choice.
Ncs()
=======
// getter for Ncs to set choice.
Ncs()
// getter for Dce to set choice.
Dce()
// getter for VarReserved to set choice.
VarReserved()
>>>>>>> main
// getter for Guid to set choice.
Guid()
}
Expand All @@ -308,8 +299,6 @@ func (obj *dhcpv6ClientOptionsDuidUuidVariant) Choice() Dhcpv6ClientOptionsDuidU
return Dhcpv6ClientOptionsDuidUuidVariantChoiceEnum(obj.obj.Choice.Enum().String())
}

<<<<<<< HEAD
=======
// getter for Ncs to set choice
func (obj *dhcpv6ClientOptionsDuidUuidVariant) Ncs() {
obj.setChoice(Dhcpv6ClientOptionsDuidUuidVariantChoice.NCS)
Expand All @@ -320,25 +309,11 @@ func (obj *dhcpv6ClientOptionsDuidUuidVariant) Dce() {
obj.setChoice(Dhcpv6ClientOptionsDuidUuidVariantChoice.DCE)
}

>>>>>>> main
// getter for VarReserved to set choice
func (obj *dhcpv6ClientOptionsDuidUuidVariant) VarReserved() {
obj.setChoice(Dhcpv6ClientOptionsDuidUuidVariantChoice.VAR_RESERVED)
}

<<<<<<< HEAD
// getter for Dce to set choice
func (obj *dhcpv6ClientOptionsDuidUuidVariant) Dce() {
obj.setChoice(Dhcpv6ClientOptionsDuidUuidVariantChoice.DCE)
}

// getter for Ncs to set choice
func (obj *dhcpv6ClientOptionsDuidUuidVariant) Ncs() {
obj.setChoice(Dhcpv6ClientOptionsDuidUuidVariantChoice.NCS)
}

=======
>>>>>>> main
// getter for Guid to set choice
func (obj *dhcpv6ClientOptionsDuidUuidVariant) Guid() {
obj.setChoice(Dhcpv6ClientOptionsDuidUuidVariantChoice.GUID)
Expand Down
50 changes: 14 additions & 36 deletions gosnappi/dhcpv6_client_options_duid_uuid_version.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,24 +270,16 @@ type Dhcpv6ClientOptionsDuidUuidVersion interface {
setChoice(value Dhcpv6ClientOptionsDuidUuidVersionChoiceEnum) Dhcpv6ClientOptionsDuidUuidVersion
// HasChoice checks if Choice has been set in Dhcpv6ClientOptionsDuidUuidVersion
HasChoice() bool
<<<<<<< HEAD
=======
// getter for V_2 to set choice.
V_2()
// getter for V_3 to set choice.
V_3()
// getter for V_5 to set choice.
V_5()
>>>>>>> main
// getter for V_1 to set choice.
V_1()
// getter for V_4 to set choice.
V_4()
// getter for V_3 to set choice.
V_3()
<<<<<<< HEAD
// getter for V_5 to set choice.
V_5()
=======
>>>>>>> main
// getter for V_2 to set choice.
V_2()
}

type Dhcpv6ClientOptionsDuidUuidVersionChoiceEnum string
Expand All @@ -311,14 +303,21 @@ func (obj *dhcpv6ClientOptionsDuidUuidVersion) Choice() Dhcpv6ClientOptionsDuidU
return Dhcpv6ClientOptionsDuidUuidVersionChoiceEnum(obj.obj.Choice.Enum().String())
}

<<<<<<< HEAD
=======
// getter for V_2 to set choice
func (obj *dhcpv6ClientOptionsDuidUuidVersion) V_2() {
obj.setChoice(Dhcpv6ClientOptionsDuidUuidVersionChoice.V_2)
}

// getter for V_3 to set choice
func (obj *dhcpv6ClientOptionsDuidUuidVersion) V_3() {
obj.setChoice(Dhcpv6ClientOptionsDuidUuidVersionChoice.V_3)
}

// getter for V_5 to set choice
func (obj *dhcpv6ClientOptionsDuidUuidVersion) V_5() {
obj.setChoice(Dhcpv6ClientOptionsDuidUuidVersionChoice.V_5)
}

>>>>>>> main
// getter for V_1 to set choice
func (obj *dhcpv6ClientOptionsDuidUuidVersion) V_1() {
obj.setChoice(Dhcpv6ClientOptionsDuidUuidVersionChoice.V_1)
Expand All @@ -329,27 +328,6 @@ func (obj *dhcpv6ClientOptionsDuidUuidVersion) V_4() {
obj.setChoice(Dhcpv6ClientOptionsDuidUuidVersionChoice.V_4)
}

// getter for V_3 to set choice
func (obj *dhcpv6ClientOptionsDuidUuidVersion) V_3() {
obj.setChoice(Dhcpv6ClientOptionsDuidUuidVersionChoice.V_3)
}

<<<<<<< HEAD
// getter for V_5 to set choice
func (obj *dhcpv6ClientOptionsDuidUuidVersion) V_5() {
obj.setChoice(Dhcpv6ClientOptionsDuidUuidVersionChoice.V_5)
=======
// getter for V_2 to set choice
func (obj *dhcpv6ClientOptionsDuidUuidVersion) V_2() {
obj.setChoice(Dhcpv6ClientOptionsDuidUuidVersionChoice.V_2)
>>>>>>> main
}

// getter for V_2 to set choice
func (obj *dhcpv6ClientOptionsDuidUuidVersion) V_2() {
obj.setChoice(Dhcpv6ClientOptionsDuidUuidVersionChoice.V_2)
}

// The version values are from 1 to 5 in the most significant 4 bits of the timestamp (bits 4 through 7 of the time_hi_and_version field).
// Choice returns a string
func (obj *dhcpv6ClientOptionsDuidUuidVersion) HasChoice() bool {
Expand Down
Loading

0 comments on commit 7c5c409

Please sign in to comment.