Skip to content

Commit 9818e63

Browse files
committed
Fix issue with parsing the IPv6 prefix
1 parent bb59e56 commit 9818e63

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

get_connection_info.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,9 @@
146146

147147
- name: Remove colon at the end of IPv6 prefix
148148
when:
149-
- ipv6_prefix != ""
149+
- ipv6_prefix_address != ""
150150
set_fact:
151-
ipv6_prefix_without_colon: "{{ ipv6_prefix | regex_replace(':$', '') }}"
151+
ipv6_prefix_without_colon: "{{ ipv6_prefix_address | regex_replace(':$', '') }}"
152152

153153
- name: Set external IPv6 address to prefix and identifier if
154154
when:
@@ -159,7 +159,7 @@
159159

160160
- name: Print external IPv6 address
161161
when:
162-
- external_ipv6_address == ""
162+
- external_ipv6_address != ""
163163
debug:
164164
var: external_ipv6_address
165165

0 commit comments

Comments
 (0)