From 51e65ef0e9d284900d97deb599294ad5933351b6 Mon Sep 17 00:00:00 2001 From: Chris Marget Date: Fri, 14 Jul 2023 18:39:28 -0400 Subject: [PATCH] add `leaf_l3_peer_link_link_ips` to `ResourceGroupName` iota --- apstra/two_stage_l3_clos_resources.go | 8 ++++++++ apstra/two_stage_l3_clos_resources_test.go | 1 + 2 files changed, 9 insertions(+) diff --git a/apstra/two_stage_l3_clos_resources.go b/apstra/two_stage_l3_clos_resources.go index 1afddf7f..127d250a 100644 --- a/apstra/two_stage_l3_clos_resources.go +++ b/apstra/two_stage_l3_clos_resources.go @@ -50,6 +50,7 @@ const ( ResourceGroupNameSpineLeafIp6 ResourceGroupNameAccessAccessIp4 ResourceGroupNameLeafLeafIp4 + ResourceGroupNameLeafL3PeerLinkLinkIps ResourceGroupNameMlagDomainIp4 ResourceGroupNameVtepIp4 ResourceGroupNameEvpnL3Vni @@ -72,6 +73,7 @@ const ( resourceGroupNameSpineLeafIp4 = resourceGroupName("spine_leaf_link_ips") resourceGroupNameSpineLeafIp6 = resourceGroupName("ipv6_spine_leaf_link_ips") resourceGroupNameLeafLeafIp4 = resourceGroupName("leaf_leaf_link_ips") + resourceGroupNameLeafL3PeerLinkLinkIps = resourceGroupName("leaf_l3_peer_link_link_ips") resourceGroupNameMlagDomainSviIp4 = resourceGroupName("mlag_domain_svi_subnets") resourceGroupNameAccessAccessIp4 = resourceGroupName("access_l3_peer_link_link_ips") resourceGroupNameVtepIp4 = resourceGroupName("vtep_ips") @@ -131,6 +133,8 @@ func (o *ResourceGroupName) Type() ResourceType { return ResourceTypeIp4Pool case ResourceGroupNameLeafLeafIp4: return ResourceTypeIp4Pool + case ResourceGroupNameLeafL3PeerLinkLinkIps: + return ResourceTypeIp4Pool case ResourceGroupNameMlagDomainIp4: return ResourceTypeIp4Pool case ResourceGroupNameVtepIp4: @@ -195,6 +199,8 @@ func (o ResourceGroupName) raw() resourceGroupName { return resourceGroupNameAccessAccessIp4 case ResourceGroupNameLeafLeafIp4: return resourceGroupNameLeafLeafIp4 + case ResourceGroupNameLeafL3PeerLinkLinkIps: + return resourceGroupNameLeafL3PeerLinkLinkIps case ResourceGroupNameMlagDomainIp4: return resourceGroupNameMlagDomainSviIp4 case ResourceGroupNameVtepIp4: @@ -246,6 +252,8 @@ func (o resourceGroupName) parse() (int, error) { return int(ResourceGroupNameAccessAccessIp4), nil case resourceGroupNameLeafLeafIp4: return int(ResourceGroupNameLeafLeafIp4), nil + case resourceGroupNameLeafL3PeerLinkLinkIps: + return int(ResourceGroupNameLeafL3PeerLinkLinkIps), nil case resourceGroupNameMlagDomainSviIp4: return int(ResourceGroupNameMlagDomainIp4), nil case resourceGroupNameVtepIp4: diff --git a/apstra/two_stage_l3_clos_resources_test.go b/apstra/two_stage_l3_clos_resources_test.go index 442e349b..6df3011a 100644 --- a/apstra/two_stage_l3_clos_resources_test.go +++ b/apstra/two_stage_l3_clos_resources_test.go @@ -151,6 +151,7 @@ func TestTwoStageL3ClosResourceStrings(t *testing.T) { {stringVal: "ipv6_spine_leaf_link_ips", intType: ResourceGroupNameSpineLeafIp6, stringType: resourceGroupNameSpineLeafIp6}, {stringVal: "access_l3_peer_link_link_ips", intType: ResourceGroupNameAccessAccessIp4, stringType: resourceGroupNameAccessAccessIp4}, {stringVal: "leaf_leaf_link_ips", intType: ResourceGroupNameLeafLeafIp4, stringType: resourceGroupNameLeafLeafIp4}, + {stringVal: "leaf_l3_peer_link_link_ips", intType: ResourceGroupNameLeafL3PeerLinkLinkIps, stringType: resourceGroupNameLeafL3PeerLinkLinkIps}, {stringVal: "mlag_domain_svi_subnets", intType: ResourceGroupNameMlagDomainIp4, stringType: resourceGroupNameMlagDomainSviIp4}, {stringVal: "vtep_ips", intType: ResourceGroupNameVtepIp4, stringType: resourceGroupNameVtepIp4}, {stringVal: "evpn_l3_vnis", intType: ResourceGroupNameEvpnL3Vni, stringType: resourceGroupNameEvpnL3Vni},