Hi Juha,
On 12/21/2011 02:11 PM, Juha Heinanen wrote:
based on the patch i got impression that it uses current ip_addr column of lcr_gw table to store also ipv6 address? if so, then also the schema file would need to be changed.
Exactly. Sorry, forgot that part. Since the patch supports optional surrounding square brackets, the max. length of an IPv6 address is 47.
So it's either 8*4+7+2 for normal IPv6, like "[0000:0000:0000:0000:0000:0000:0000:0000]", or (6*4+5)+1+(4*3+3)+2 for tunneling, like "[0000:0000:0000:0000:0000:0000:192.168.100.100]".
We could argue whether to not support square brackets and just allow plain IP format, I've no strong opinions on that. We just wanted to make it as flexible as possible.
Should I adapt the patch to reflect the schema change as well, or could you maybe change it manually in lib/srdb1/schema/lcr_gw.xml?
Andreas