Skip to content

Commit

Permalink
Merge pull request #55 from Juniper/bug/54
Browse files Browse the repository at this point in the history
add `leaf_l3_peer_link_link_ips` to `ResourceGroupName` iota
  • Loading branch information
chrismarget-j authored Jul 15, 2023
2 parents 4a68f2d + 51e65ef commit adc5b8c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions apstra/two_stage_l3_clos_resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ const (
ResourceGroupNameSpineLeafIp6
ResourceGroupNameAccessAccessIp4
ResourceGroupNameLeafLeafIp4
ResourceGroupNameLeafL3PeerLinkLinkIps
ResourceGroupNameMlagDomainIp4
ResourceGroupNameVtepIp4
ResourceGroupNameEvpnL3Vni
Expand All @@ -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")
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions apstra/two_stage_l3_clos_resources_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand Down

0 comments on commit adc5b8c

Please sign in to comment.