Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion do.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

# supported values - branch name or None
USE_OPENAPIART_BRANCH = None
USE_MODELS_BRANCH = None
USE_MODELS_BRANCH = "bgp-labeled-unicast-li"

OPENAPIART_REPO = "https://github.com/open-traffic-generator/openapiart.git"
MODELS_REPO = "https://github.com/open-traffic-generator/models.git"
Expand Down
6 changes: 0 additions & 6 deletions gosnappi/action_port_reboot.go
Original file line number Diff line number Diff line change
Expand Up @@ -275,9 +275,6 @@ type ActionPortReboot interface {
// x-constraint:
// - /components/schemas/Port/properties/name
//
// x-constraint:
// - /components/schemas/Port/properties/name
//
// PortNames returns a []string
func (obj *actionPortReboot) PortNames() []string {
if obj.obj.PortNames == nil {
Expand All @@ -291,9 +288,6 @@ func (obj *actionPortReboot) PortNames() []string {
// x-constraint:
// - /components/schemas/Port/properties/name
//
// x-constraint:
// - /components/schemas/Port/properties/name
//
// SetPortNames sets the []string value in the ActionPortReboot object
func (obj *actionPortReboot) SetPortNames(value []string) ActionPortReboot {

Expand Down
8 changes: 0 additions & 8 deletions gosnappi/action_protocol_bgp_initiate_graceful_restart.go
Original file line number Diff line number Diff line change
Expand Up @@ -299,10 +299,6 @@ type ActionProtocolBgpInitiateGracefulRestart interface {
// - /components/schemas/Bgp.V4Peer/properties/name
// - /components/schemas/Bgp.V6Peer/properties/name
//
// x-constraint:
// - /components/schemas/Bgp.V4Peer/properties/name
// - /components/schemas/Bgp.V6Peer/properties/name
//
// PeerNames returns a []string
func (obj *actionProtocolBgpInitiateGracefulRestart) PeerNames() []string {
if obj.obj.PeerNames == nil {
Expand All @@ -317,10 +313,6 @@ func (obj *actionProtocolBgpInitiateGracefulRestart) PeerNames() []string {
// - /components/schemas/Bgp.V4Peer/properties/name
// - /components/schemas/Bgp.V6Peer/properties/name
//
// x-constraint:
// - /components/schemas/Bgp.V4Peer/properties/name
// - /components/schemas/Bgp.V6Peer/properties/name
//
// SetPeerNames sets the []string value in the ActionProtocolBgpInitiateGracefulRestart object
func (obj *actionProtocolBgpInitiateGracefulRestart) SetPeerNames(value []string) ActionProtocolBgpInitiateGracefulRestart {

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

Expand Down
12 changes: 0 additions & 12 deletions gosnappi/action_protocol_ipv4_ping_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -285,10 +285,6 @@ type ActionProtocolIpv4PingRequest interface {
// - /components/schemas/Device.Ipv4/properties/name
// - /components/schemas/Device.Ipv4Loopback/properties/name
//
// x-constraint:
// - /components/schemas/Device.Ipv4/properties/name
// - /components/schemas/Device.Ipv4Loopback/properties/name
//
// SrcName returns a string
func (obj *actionProtocolIpv4PingRequest) SrcName() string {

Expand All @@ -302,10 +298,6 @@ func (obj *actionProtocolIpv4PingRequest) SrcName() string {
// - /components/schemas/Device.Ipv4/properties/name
// - /components/schemas/Device.Ipv4Loopback/properties/name
//
// x-constraint:
// - /components/schemas/Device.Ipv4/properties/name
// - /components/schemas/Device.Ipv4Loopback/properties/name
//
// SrcName returns a string
func (obj *actionProtocolIpv4PingRequest) HasSrcName() bool {
return obj.obj.SrcName != nil
Expand All @@ -317,10 +309,6 @@ func (obj *actionProtocolIpv4PingRequest) HasSrcName() bool {
// - /components/schemas/Device.Ipv4/properties/name
// - /components/schemas/Device.Ipv4Loopback/properties/name
//
// x-constraint:
// - /components/schemas/Device.Ipv4/properties/name
// - /components/schemas/Device.Ipv4Loopback/properties/name
//
// SetSrcName sets the string value in the ActionProtocolIpv4PingRequest object
func (obj *actionProtocolIpv4PingRequest) SetSrcName(value string) ActionProtocolIpv4PingRequest {

Expand Down
12 changes: 0 additions & 12 deletions gosnappi/action_protocol_ipv6_ping_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -285,10 +285,6 @@ type ActionProtocolIpv6PingRequest interface {
// - /components/schemas/Device.Ipv6/properties/name
// - /components/schemas/Device.Ipv6Loopback/properties/name
//
// x-constraint:
// - /components/schemas/Device.Ipv6/properties/name
// - /components/schemas/Device.Ipv6Loopback/properties/name
//
// SrcName returns a string
func (obj *actionProtocolIpv6PingRequest) SrcName() string {

Expand All @@ -302,10 +298,6 @@ func (obj *actionProtocolIpv6PingRequest) SrcName() string {
// - /components/schemas/Device.Ipv6/properties/name
// - /components/schemas/Device.Ipv6Loopback/properties/name
//
// x-constraint:
// - /components/schemas/Device.Ipv6/properties/name
// - /components/schemas/Device.Ipv6Loopback/properties/name
//
// SrcName returns a string
func (obj *actionProtocolIpv6PingRequest) HasSrcName() bool {
return obj.obj.SrcName != nil
Expand All @@ -317,10 +309,6 @@ func (obj *actionProtocolIpv6PingRequest) HasSrcName() bool {
// - /components/schemas/Device.Ipv6/properties/name
// - /components/schemas/Device.Ipv6Loopback/properties/name
//
// x-constraint:
// - /components/schemas/Device.Ipv6/properties/name
// - /components/schemas/Device.Ipv6Loopback/properties/name
//
// SetSrcName sets the string value in the ActionProtocolIpv6PingRequest object
func (obj *actionProtocolIpv6PingRequest) SetSrcName(value string) ActionProtocolIpv6PingRequest {

Expand Down
6 changes: 0 additions & 6 deletions gosnappi/action_protocol_isis_initiate_restart.go
Original file line number Diff line number Diff line change
Expand Up @@ -314,9 +314,6 @@ type ActionProtocolIsisInitiateRestart interface {
// x-constraint:
// - /components/schemas/Device.IsisRouter/properties/name
//
// x-constraint:
// - /components/schemas/Device.IsisRouter/properties/name
//
// RouterNames returns a []string
func (obj *actionProtocolIsisInitiateRestart) RouterNames() []string {
if obj.obj.RouterNames == nil {
Expand All @@ -330,9 +327,6 @@ func (obj *actionProtocolIsisInitiateRestart) RouterNames() []string {
// x-constraint:
// - /components/schemas/Device.IsisRouter/properties/name
//
// x-constraint:
// - /components/schemas/Device.IsisRouter/properties/name
//
// SetRouterNames sets the []string value in the ActionProtocolIsisInitiateRestart object
func (obj *actionProtocolIsisInitiateRestart) SetRouterNames(value []string) ActionProtocolIsisInitiateRestart {

Expand Down
8 changes: 0 additions & 8 deletions gosnappi/action_response_protocol_ipv4_ping_response.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,10 +284,6 @@ type ActionResponseProtocolIpv4PingResponse interface {
// - /components/schemas/Device.Ipv4/properties/name
// - /components/schemas/Device.Ipv4Loopback/properties/name
//
// x-constraint:
// - /components/schemas/Device.Ipv4/properties/name
// - /components/schemas/Device.Ipv4Loopback/properties/name
//
// SrcName returns a string
func (obj *actionResponseProtocolIpv4PingResponse) SrcName() string {

Expand All @@ -301,10 +297,6 @@ func (obj *actionResponseProtocolIpv4PingResponse) SrcName() string {
// - /components/schemas/Device.Ipv4/properties/name
// - /components/schemas/Device.Ipv4Loopback/properties/name
//
// x-constraint:
// - /components/schemas/Device.Ipv4/properties/name
// - /components/schemas/Device.Ipv4Loopback/properties/name
//
// SetSrcName sets the string value in the ActionResponseProtocolIpv4PingResponse object
func (obj *actionResponseProtocolIpv4PingResponse) SetSrcName(value string) ActionResponseProtocolIpv4PingResponse {

Expand Down
8 changes: 0 additions & 8 deletions gosnappi/action_response_protocol_ipv6_ping_response.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,10 +284,6 @@ type ActionResponseProtocolIpv6PingResponse interface {
// - /components/schemas/Device.Ipv6/properties/name
// - /components/schemas/Device.Ipv6Loopback/properties/name
//
// x-constraint:
// - /components/schemas/Device.Ipv6/properties/name
// - /components/schemas/Device.Ipv6Loopback/properties/name
//
// SrcName returns a string
func (obj *actionResponseProtocolIpv6PingResponse) SrcName() string {

Expand All @@ -301,10 +297,6 @@ func (obj *actionResponseProtocolIpv6PingResponse) SrcName() string {
// - /components/schemas/Device.Ipv6/properties/name
// - /components/schemas/Device.Ipv6Loopback/properties/name
//
// x-constraint:
// - /components/schemas/Device.Ipv6/properties/name
// - /components/schemas/Device.Ipv6Loopback/properties/name
//
// SetSrcName sets the string value in the ActionResponseProtocolIpv6PingResponse object
func (obj *actionResponseProtocolIpv6PingResponse) SetSrcName(value string) ActionResponseProtocolIpv6PingResponse {

Expand Down
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 NoLlgr to set choice.
NoLlgr()
// getter for NoExport to set choice.
NoExport()
// getter for LlgrStale to set choice.
LlgrStale()
// getter for NoAdvertised to set choice.
NoAdvertised()
// getter for LlgrStale to set choice.
LlgrStale()
// getter for NoExportSubconfed to set choice.
NoExportSubconfed()
// 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,11 +322,6 @@ 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 NoLlgr to set choice
func (obj *bgpAttributesCommunity) NoLlgr() {
obj.setChoice(BgpAttributesCommunityChoice.NO_LLGR)
Expand All @@ -337,14 +332,19 @@ func (obj *bgpAttributesCommunity) NoExport() {
obj.setChoice(BgpAttributesCommunityChoice.NO_EXPORT)
}

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

func (obj *bgpAttributesCommunity) setChoice(value BgpAttributesCommunityChoiceEnum) BgpAttributesCommunity {
Expand Down
24 changes: 12 additions & 12 deletions gosnappi/bgp_attributes_sr_policy_explicit_null_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,14 +272,14 @@ 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 PushIpv4 to set choice.
PushIpv4()
// 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 DonotPush to set choice.
DonotPush()
}
Expand All @@ -305,26 +305,26 @@ 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 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)
}

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

// getter for PushIpv4AndIpv6 to set choice
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 DonotPush to set choice
func (obj *bgpAttributesSrPolicyExplicitNullPolicy) DonotPush() {
obj.setChoice(BgpAttributesSrPolicyExplicitNullPolicyChoice.DONOT_PUSH)
Expand Down
62 changes: 62 additions & 0 deletions gosnappi/bgp_learned_information_filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,18 @@ type BgpLearnedInformationFilter interface {
SetUnicastIpv6Prefix(value bool) BgpLearnedInformationFilter
// HasUnicastIpv6Prefix checks if UnicastIpv6Prefix has been set in BgpLearnedInformationFilter
HasUnicastIpv6Prefix() bool
// Ipv4MplsUnicastPrefix returns bool, set in BgpLearnedInformationFilter.
Ipv4MplsUnicastPrefix() bool
// SetIpv4MplsUnicastPrefix assigns bool provided by user to BgpLearnedInformationFilter
SetIpv4MplsUnicastPrefix(value bool) BgpLearnedInformationFilter
// HasIpv4MplsUnicastPrefix checks if Ipv4MplsUnicastPrefix has been set in BgpLearnedInformationFilter
HasIpv4MplsUnicastPrefix() bool
// Ipv6MplsUnicastPrefix returns bool, set in BgpLearnedInformationFilter.
Ipv6MplsUnicastPrefix() bool
// SetIpv6MplsUnicastPrefix assigns bool provided by user to BgpLearnedInformationFilter
SetIpv6MplsUnicastPrefix(value bool) BgpLearnedInformationFilter
// HasIpv6MplsUnicastPrefix checks if Ipv6MplsUnicastPrefix has been set in BgpLearnedInformationFilter
HasIpv6MplsUnicastPrefix() bool
}

// If enabled, will store the information related to Unicast IPv4 Prefixes recieved from the peer.
Expand Down Expand Up @@ -322,6 +334,50 @@ func (obj *bgpLearnedInformationFilter) SetUnicastIpv6Prefix(value bool) BgpLear
return obj
}

// If enabled, will store the information related to MPLS Unicast IPv4 Prefixes recieved from the peer.
// Ipv4MplsUnicastPrefix returns a bool
func (obj *bgpLearnedInformationFilter) Ipv4MplsUnicastPrefix() bool {

return *obj.obj.Ipv4MplsUnicastPrefix

}

// If enabled, will store the information related to MPLS Unicast IPv4 Prefixes recieved from the peer.
// Ipv4MplsUnicastPrefix returns a bool
func (obj *bgpLearnedInformationFilter) HasIpv4MplsUnicastPrefix() bool {
return obj.obj.Ipv4MplsUnicastPrefix != nil
}

// If enabled, will store the information related to MPLS Unicast IPv4 Prefixes recieved from the peer.
// SetIpv4MplsUnicastPrefix sets the bool value in the BgpLearnedInformationFilter object
func (obj *bgpLearnedInformationFilter) SetIpv4MplsUnicastPrefix(value bool) BgpLearnedInformationFilter {

obj.obj.Ipv4MplsUnicastPrefix = &value
return obj
}

// If enabled, will store the information related to MPLS Unicast IPv6 Prefixes recieved from the peer.
// Ipv6MplsUnicastPrefix returns a bool
func (obj *bgpLearnedInformationFilter) Ipv6MplsUnicastPrefix() bool {

return *obj.obj.Ipv6MplsUnicastPrefix

}

// If enabled, will store the information related to MPLS Unicast IPv6 Prefixes recieved from the peer.
// Ipv6MplsUnicastPrefix returns a bool
func (obj *bgpLearnedInformationFilter) HasIpv6MplsUnicastPrefix() bool {
return obj.obj.Ipv6MplsUnicastPrefix != nil
}

// If enabled, will store the information related to MPLS Unicast IPv6 Prefixes recieved from the peer.
// SetIpv6MplsUnicastPrefix sets the bool value in the BgpLearnedInformationFilter object
func (obj *bgpLearnedInformationFilter) SetIpv6MplsUnicastPrefix(value bool) BgpLearnedInformationFilter {

obj.obj.Ipv6MplsUnicastPrefix = &value
return obj
}

func (obj *bgpLearnedInformationFilter) validateObj(vObj *validation, set_default bool) {
if set_default {
obj.setDefault()
Expand All @@ -336,5 +392,11 @@ func (obj *bgpLearnedInformationFilter) setDefault() {
if obj.obj.UnicastIpv6Prefix == nil {
obj.SetUnicastIpv6Prefix(false)
}
if obj.obj.Ipv4MplsUnicastPrefix == nil {
obj.SetIpv4MplsUnicastPrefix(false)
}
if obj.obj.Ipv6MplsUnicastPrefix == nil {
obj.SetIpv6MplsUnicastPrefix(false)
}

}
Loading