We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 20fce42 commit 9bf8ad3Copy full SHA for 9bf8ad3
1 file changed
itamae/helpers.rb
@@ -1,5 +1,5 @@
1
module TemplateHelpers
2
- # Embed IPv4 address of CIDR in Pref64::/n
+ # Embed IPv4 address or CIDR in Pref64::/n
3
def embed_v4(pref64n, v4)
4
v4addr, v4prefixlen = v4.split(?/, 2)
5
v6prefixlen = v4prefixlen.to_i + 96 if v4prefixlen
0 commit comments