Add interface_by_name, interface_by_ipaddr, interface_by_macaddr methods to main net class