Closed hosunghwang closed 2 years ago
The way how it is implemented now makes this code useful almost only for networking-infoblox, since only there we have strict mapping between Network and Subnet ID EA.
To make it more useful for other cases I am thiking about doing it in more generic way.
get_network_by_ea
But still it limit search_by_ea approach for both v4/v6 objects with network.
I'll do some prototyping to see if [2] is easy to implement in cosistent way without spending too much time, if not I fall back to way [1], since this one is easy to implement.
Hi @hosunghwang can you confirm if you are still facing this issue?
The issue is 6 years old, should be safe to close it.
Closing the issue.
The following api should return ib network by subnet id and ip_version. But ip_version is None by default.
def get_network_by_subnet_id(self, subnet_id, ip_version=None): ea = ib_objects.EA({'Subnet ID': subnet_id})