metadata: add support for IPv6 variable substitution