Skip to content

Commit

Permalink
test: still do static IPv6 template checks if host doesn't have ipv6
Browse files Browse the repository at this point in the history
  • Loading branch information
tjhop committed Aug 10, 2024
1 parent e6e27bc commit 9042d9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/mockup/inventory/modules/test-template/apply
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,11 @@ Checking IPv4 Validation:
Google DNS 8.8.8.8: {{ isIPv4 "8.8.8.8" }}
My IP {{ GetPrivateIP }}: {{ GetPrivateIP | isIPv4 }}
Bad IP '1.2.j': {{ isIPv4 "1.2.j" }}
{{- with $myipv6 := GetAllInterfaces | include "type" "IPv6" | include "flags" "global unicast" | attr "address" }}
Checking IPv6 Validation:
Google DNS 2001:4860:4860::8888: {{ isIPv6 "2001:4860:4860::8888" }}
My IP {{ $myipv6 }}: {{ $myipv6 | isIPv6 }}
Bad IP '1.2.j': {{ isIPv6 "1.2.j" }}
{{- with $myipv6 := GetAllInterfaces | include "type" "IPv6" | include "flags" "global unicast" | attr "address" }}
My IP {{ $myipv6 }}: {{ $myipv6 | isIPv6 }}
{{- end }}
Done.
-------------------
Expand Down

0 comments on commit 9042d9a

Please sign in to comment.