fix #240: standardised access through Ipv[4/6]Resource classes, avoiding the use of strings