Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

isis-sr support #233

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
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 = "isis-sr"

OPENAPIART_REPO = "https://github.com/open-traffic-generator/openapiart.git"
MODELS_REPO = "https://github.com/open-traffic-generator/models.git"
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
11 changes: 0 additions & 11 deletions gosnappi/action_protocol_ipv4_ping_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,6 @@ func (obj *actionProtocolIpv4PingRequest) Clone() (ActionProtocolIpv4PingRequest

// ActionProtocolIpv4PingRequest is under Review: Most ping request parameters are still TBD.
//
// Under Review: Most ping request parameters are still TBD.
//
// Request for initiating ping between a single source and destination pair.
// For ping request, 1 IPv4 ICMP Echo Request shall be sent and wait for ping response to either succeed or time out. The API wait timeout for each request shall be 300ms.
type ActionProtocolIpv4PingRequest interface {
Expand Down Expand Up @@ -288,9 +286,6 @@ type ActionProtocolIpv4PingRequest interface {
// x-constraint:
// - /components/schemas/Device.Ipv4/properties/name
//
// x-constraint:
// - /components/schemas/Device.Ipv4/properties/name
//
// SrcName returns a string
func (obj *actionProtocolIpv4PingRequest) SrcName() string {

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

Expand Down
11 changes: 0 additions & 11 deletions gosnappi/action_protocol_ipv6_ping_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,6 @@ func (obj *actionProtocolIpv6PingRequest) Clone() (ActionProtocolIpv6PingRequest

// ActionProtocolIpv6PingRequest is under Review: Most ping request parameters are still TBD.
//
// Under Review: Most ping request parameters are still TBD.
//
// Request for initiating ping between a single source and destination pair.
// For ping request, 1 IPv6 ICMP Echo Request shall be sent and wait for ping response to either succeed or time out. The API wait timeout for each request shall be 300ms.
type ActionProtocolIpv6PingRequest interface {
Expand Down Expand Up @@ -288,9 +286,6 @@ type ActionProtocolIpv6PingRequest interface {
// x-constraint:
// - /components/schemas/Device.Ipv6/properties/name
//
// x-constraint:
// - /components/schemas/Device.Ipv6/properties/name
//
// SrcName returns a string
func (obj *actionProtocolIpv6PingRequest) SrcName() string {

Expand All @@ -303,9 +298,6 @@ func (obj *actionProtocolIpv6PingRequest) SrcName() string {
// x-constraint:
// - /components/schemas/Device.Ipv6/properties/name
//
// x-constraint:
// - /components/schemas/Device.Ipv6/properties/name
//
// SrcName returns a string
func (obj *actionProtocolIpv6PingRequest) HasSrcName() bool {
return obj.obj.SrcName != nil
Expand All @@ -316,9 +308,6 @@ func (obj *actionProtocolIpv6PingRequest) HasSrcName() bool {
// x-constraint:
// - /components/schemas/Device.Ipv6/properties/name
//
// x-constraint:
// - /components/schemas/Device.Ipv6/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_response_protocol_ipv4_ping_response.go
Original file line number Diff line number Diff line change
Expand Up @@ -283,9 +283,6 @@ type ActionResponseProtocolIpv4PingResponse interface {
// x-constraint:
// - /components/schemas/Device.Ipv4/properties/name
//
// x-constraint:
// - /components/schemas/Device.Ipv4/properties/name
//
// SrcName returns a string
func (obj *actionResponseProtocolIpv4PingResponse) SrcName() string {

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

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

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

Expand Down
14 changes: 7 additions & 7 deletions gosnappi/bgp_attributes_sr_policy_explicit_null_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,14 +274,14 @@ type BgpAttributesSrPolicyExplicitNullPolicy interface {
HasChoice() bool
// getter for PushIpv4 to set choice.
PushIpv4()
// getter for Unknown to set choice.
Unknown()
// getter for DonotPush to set choice.
DonotPush()
// getter for PushIpv4AndIpv6 to set choice.
PushIpv4AndIpv6()
// getter for PushIpv6 to set choice.
PushIpv6()
// getter for Unknown to set choice.
Unknown()
}

type BgpAttributesSrPolicyExplicitNullPolicyChoiceEnum string
Expand Down Expand Up @@ -310,11 +310,6 @@ func (obj *bgpAttributesSrPolicyExplicitNullPolicy) PushIpv4() {
obj.setChoice(BgpAttributesSrPolicyExplicitNullPolicyChoice.PUSH_IPV4)
}

// 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 All @@ -330,6 +325,11 @@ func (obj *bgpAttributesSrPolicyExplicitNullPolicy) PushIpv6() {
obj.setChoice(BgpAttributesSrPolicyExplicitNullPolicyChoice.PUSH_IPV6)
}

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

// The Explicit NULL Label policy.
// Choice returns a string
func (obj *bgpAttributesSrPolicyExplicitNullPolicy) HasChoice() bool {
Expand Down
8 changes: 0 additions & 8 deletions gosnappi/bgp_prefix_state_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -295,10 +295,6 @@ type BgpPrefixStateRequest 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
//
// BgpPeerNames returns a []string
func (obj *bgpPrefixStateRequest) BgpPeerNames() []string {
if obj.obj.BgpPeerNames == nil {
Expand All @@ -313,10 +309,6 @@ func (obj *bgpPrefixStateRequest) BgpPeerNames() []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
//
// SetBgpPeerNames sets the []string value in the BgpPrefixStateRequest object
func (obj *bgpPrefixStateRequest) SetBgpPeerNames(value []string) BgpPrefixStateRequest {

Expand Down
10 changes: 0 additions & 10 deletions gosnappi/bgp_v4_interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,11 +288,6 @@ type BgpV4Interface interface {
// - /components/schemas/Device.Ipv4Loopback/properties/name
// - /components/schemas/Device.Dhcpv4client/properties/name
//
// x-constraint:
// - /components/schemas/Device.Ipv4/properties/name
// - /components/schemas/Device.Ipv4Loopback/properties/name
// - /components/schemas/Device.Dhcpv4client/properties/name
//
// Ipv4Name returns a string
func (obj *bgpV4Interface) Ipv4Name() string {

Expand All @@ -307,11 +302,6 @@ func (obj *bgpV4Interface) Ipv4Name() string {
// - /components/schemas/Device.Ipv4Loopback/properties/name
// - /components/schemas/Device.Dhcpv4client/properties/name
//
// x-constraint:
// - /components/schemas/Device.Ipv4/properties/name
// - /components/schemas/Device.Ipv4Loopback/properties/name
// - /components/schemas/Device.Dhcpv4client/properties/name
//
// SetIpv4Name sets the string value in the BgpV4Interface object
func (obj *bgpV4Interface) SetIpv4Name(value string) BgpV4Interface {

Expand Down
2 changes: 0 additions & 2 deletions gosnappi/bgp_v4_route_range.go
Original file line number Diff line number Diff line change
Expand Up @@ -737,8 +737,6 @@ func (obj *bgpV4RouteRange) SetName(value string) BgpV4RouteRange {
return obj
}

// Deprecated: This property is deprecated in favor of property extended_communities
//
// Deprecated: This property is deprecated in favor of property extended_communities
//
// Optional Extended Community settings. The Extended Communities Attribute is a transitive optional BGP attribute, with the Type Code 16. Community and Extended Communities attributes are utilized to trigger routing decisions, such as acceptance, rejection, preference, or redistribution. An extended community is an 8-Bytes value. It is divided into two main parts. The first 2 Bytes of the community encode a type and sub-type fields and the last 6 Bytes carry a unique set of data in a format defined by the type and sub-type field. Extended communities provide a larger range for grouping or categorizing communities. When type is administrator_as_2octet or administrator_as_4octet, the valid sub types are route target and origin. The valid value for administrator_as_2octet and administrator_as_4octet type is either two byte AS followed by four byte local administrator id or four byte AS followed by two byte local administrator id. When type is administrator_ipv4_address the valid sub types are route target and origin. The valid value for administrator_ipv4_address is a four byte IPv4 address followed by a two byte local administrator id. When type is opaque, valid sub types are color and encapsulation. When sub type is color, first two bytes of the value field contain flags and last four bytes contains the value of the color. When sub type is encapsulation the first four bytes of value field are reserved and last two bytes carries the tunnel type from IANA's "ETHER TYPES" registry e.g IPv4 (protocol type = 0x0800), IPv6 (protocol type = 0x86dd), and MPLS (protocol type = 0x8847). When type is administrator_as_2octet_link_bandwidth the valid sub type is extended_bandwidth. The first two bytes of the value field contains the AS number and the last four bytes contains the bandwidth in IEEE floating point format. When type is evpn the valid subtype is mac_address. In the value field the low-order bit of the first byte(Flags) is defined as the "Sticky/static" flag and may be set to 1, indicating the MAC address is static and cannot move. The second byte is reserved and the last four bytes contain the sequence number which is used to ensure that PEs retain the correct MAC/IP Advertisement route when multiple updates occur for the same MAC address. Note evpn type is defined mainly for use with evpn route updates and not for IPv4 and IPv6 route updates.
Expand Down
10 changes: 0 additions & 10 deletions gosnappi/bgp_v6_interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,11 +288,6 @@ type BgpV6Interface interface {
// - /components/schemas/Device.Ipv6Loopback/properties/name
// - /components/schemas/Device.Dhcpv6client/properties/name
//
// x-constraint:
// - /components/schemas/Device.Ipv6/properties/name
// - /components/schemas/Device.Ipv6Loopback/properties/name
// - /components/schemas/Device.Dhcpv6client/properties/name
//
// Ipv6Name returns a string
func (obj *bgpV6Interface) Ipv6Name() string {

Expand All @@ -307,11 +302,6 @@ func (obj *bgpV6Interface) Ipv6Name() string {
// - /components/schemas/Device.Ipv6Loopback/properties/name
// - /components/schemas/Device.Dhcpv6client/properties/name
//
// x-constraint:
// - /components/schemas/Device.Ipv6/properties/name
// - /components/schemas/Device.Ipv6Loopback/properties/name
// - /components/schemas/Device.Dhcpv6client/properties/name
//
// SetIpv6Name sets the string value in the BgpV6Interface object
func (obj *bgpV6Interface) SetIpv6Name(value string) BgpV6Interface {

Expand Down
2 changes: 0 additions & 2 deletions gosnappi/bgp_v6_route_range.go
Original file line number Diff line number Diff line change
Expand Up @@ -737,8 +737,6 @@ func (obj *bgpV6RouteRange) SetName(value string) BgpV6RouteRange {
return obj
}

// Deprecated: This property is deprecated in favor of property extended_communities
//
// Deprecated: This property is deprecated in favor of property extended_communities
//
// Optional Extended Community settings. The Extended Communities Attribute is a transitive optional BGP attribute, with the Type Code 16. Community and Extended Communities attributes are utilized to trigger routing decisions, such as acceptance, rejection, preference, or redistribution. An extended community is an 8-Bytes value. It is divided into two main parts. The first 2 Bytes of the community encode a type and sub-type fields and the last 6 Bytes carry a unique set of data in a format defined by the type and sub-type field. Extended communities provide a larger range for grouping or categorizing communities. When type is administrator_as_2octet or administrator_as_4octet, the valid sub types are route target and origin. The valid value for administrator_as_2octet and administrator_as_4octet type is either two byte AS followed by four byte local administrator id or four byte AS followed by two byte local administrator id. When type is administrator_ipv4_address the valid sub types are route target and origin. The valid value for administrator_ipv4_address is a four byte IPv4 address followed by a two byte local administrator id. When type is opaque, valid sub types are color and encapsulation. When sub type is color, first two bytes of the value field contain flags and last four bytes contains the value of the color. When sub type is encapsulation the first four bytes of value field are reserved and last two bytes carries the tunnel type from IANA's "ETHER TYPES" registry e.g IPv4 (protocol type = 0x0800), IPv6 (protocol type = 0x86dd), and MPLS (protocol type = 0x8847). When type is administrator_as_2octet_link_bandwidth the valid sub type is extended_bandwidth. The first two bytes of the value field contains the AS number and the last four bytes contains the bandwidth in IEEE floating point format. When type is evpn the valid subtype is mac_address. In the value field the low-order bit of the first byte(Flags) is defined as the "Sticky/static" flag and may be set to 1, indicating the MAC address is static and cannot move. The second byte is reserved and the last four bytes contain the sequence number which is used to ensure that PEs retain the correct MAC/IP Advertisement route when multiple updates occur for the same MAC address. Note evpn type is defined mainly for use with evpn route updates and not for IPv4 and IPv6 route updates.
Expand Down
6 changes: 0 additions & 6 deletions gosnappi/bgpv4_metrics_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,9 +279,6 @@ type Bgpv4MetricsRequest interface {
// x-constraint:
// - /components/schemas/Bgp.V4peer/properties/name
//
// x-constraint:
// - /components/schemas/Bgp.V4peer/properties/name
//
// PeerNames returns a []string
func (obj *bgpv4MetricsRequest) PeerNames() []string {
if obj.obj.PeerNames == nil {
Expand All @@ -295,9 +292,6 @@ func (obj *bgpv4MetricsRequest) PeerNames() []string {
// x-constraint:
// - /components/schemas/Bgp.V4peer/properties/name
//
// x-constraint:
// - /components/schemas/Bgp.V4peer/properties/name
//
// SetPeerNames sets the []string value in the Bgpv4MetricsRequest object
func (obj *bgpv4MetricsRequest) SetPeerNames(value []string) Bgpv4MetricsRequest {

Expand Down
6 changes: 0 additions & 6 deletions gosnappi/bgpv6_metrics_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,9 +279,6 @@ type Bgpv6MetricsRequest interface {
// x-constraint:
// - /components/schemas/Bgp.V6peer/properties/name
//
// x-constraint:
// - /components/schemas/Bgp.V6peer/properties/name
//
// PeerNames returns a []string
func (obj *bgpv6MetricsRequest) PeerNames() []string {
if obj.obj.PeerNames == nil {
Expand All @@ -295,9 +292,6 @@ func (obj *bgpv6MetricsRequest) PeerNames() []string {
// x-constraint:
// - /components/schemas/Bgp.V6peer/properties/name
//
// x-constraint:
// - /components/schemas/Bgp.V6peer/properties/name
//
// SetPeerNames sets the []string value in the Bgpv6MetricsRequest object
func (obj *bgpv6MetricsRequest) SetPeerNames(value []string) Bgpv6MetricsRequest {

Expand Down
8 changes: 0 additions & 8 deletions gosnappi/capture.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,8 +252,6 @@ func (obj *capture) setNil() {

// Capture is under Review: There may be changes in filter configuration
//
// Under Review: There may be changes in filter configuration
//
// Configuration for capture settings.
type Capture interface {
Validation
Expand Down Expand Up @@ -312,9 +310,6 @@ type Capture interface {
// x-constraint:
// - /components/schemas/Port/properties/name
//
// x-constraint:
// - /components/schemas/Port/properties/name
//
// PortNames returns a []string
func (obj *capture) PortNames() []string {
if obj.obj.PortNames == nil {
Expand All @@ -328,9 +323,6 @@ func (obj *capture) PortNames() []string {
// x-constraint:
// - /components/schemas/Port/properties/name
//
// x-constraint:
// - /components/schemas/Port/properties/name
//
// SetPortNames sets the []string value in the Capture object
func (obj *capture) SetPortNames(value []string) Capture {

Expand Down
6 changes: 0 additions & 6 deletions gosnappi/capture_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -275,9 +275,6 @@ type CaptureRequest interface {
// x-constraint:
// - /components/schemas/Port/properties/name
//
// x-constraint:
// - /components/schemas/Port/properties/name
//
// PortName returns a string
func (obj *captureRequest) PortName() string {

Expand All @@ -290,9 +287,6 @@ func (obj *captureRequest) PortName() string {
// x-constraint:
// - /components/schemas/Port/properties/name
//
// x-constraint:
// - /components/schemas/Port/properties/name
//
// SetPortName sets the string value in the CaptureRequest object
func (obj *captureRequest) SetPortName(value string) CaptureRequest {

Expand Down
Loading