-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Fix provider crash when creating a metal gateway tied to an ipv6…
… reservation (#713) This PR fixes a bug when creating metal gateways associated with IPv6 reservations. Previously the provider would assume the gateway was tied to an IPv4 reservation, which would result in an error when the `calculateSubnetSize` function was called. To fix this, an additional check was added to the `calculateSubnetSize` function which ensures the address is actually `IPv4` before executing the private ipv4 subnet logic. Additionally an acceptance test was added which creates a metal gateway associated with an IPv6 reservation and VRF.
- Loading branch information
1 parent
e3aec85
commit e60c56e
Showing
2 changed files
with
63 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters