Skip to content

Improve parameter main_inet_interfaces#54

Merged
anders-larsson merged 1 commit into
Ericsson:masterfrom
anders-larsson:improve_inet_addresses
Nov 17, 2022
Merged

Improve parameter main_inet_interfaces#54
anders-larsson merged 1 commit into
Ericsson:masterfrom
anders-larsson:improve_inet_addresses

Conversation

@anders-larsson
Copy link
Copy Markdown
Contributor

No description provided.

@Phil-Friderici
Copy link
Copy Markdown
Contributor

looks good to me

# IPv6 but within brackets
# Based on https://stackoverflow.com/a/17871737
type Postfix::Ipv6_address_brackets = Pattern[
/\A\[(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\]\Z/,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what a beast, thanks for adding the link

@anders-larsson
Copy link
Copy Markdown
Contributor Author

Added documentation for the types added.

@anders-larsson anders-larsson merged commit 2062ef0 into Ericsson:master Nov 17, 2022
@anders-larsson anders-larsson deleted the improve_inet_addresses branch June 26, 2023 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants