Add functions to get interface name or index from JSON interface dump.