diff --git a/inventory_provider/snmp.py b/inventory_provider/snmp.py index b3b6852f5c42096c59bea4472be1a744944c5a06..89758f12b4f93c4bb26be2cf9e752fd08f0dccdc 100644 --- a/inventory_provider/snmp.py +++ b/inventory_provider/snmp.py @@ -18,11 +18,14 @@ JNX_BGP_M2_PEER_STATE = '1.3.6.1.4.1.2636.5.1.1.2.1.1.1.2' # tBgpPeerNgOperLastState NOKIA_BGP_PEER_STATE = '1.3.6.1.4.1.6527.3.1.2.14.4.8.1.11' -# I think these values are a GEANT convention + +# In th oids certain values are used to indicate the IP version +# This is consistent for Juniper and Nokia (possibly industry standard/convention) class IPVersion(StrEnum): IPV4 = '1' IPV6 = '2' + logger = logging.getLogger(__name__) @@ -201,9 +204,6 @@ def _v4str(int_str_list): return '.'.join(int_str_list) - - - def _get_peer_state_info_juniper(hostname, community): oid_prefix = f'.{JNX_BGP_M2_PEER_STATE}.' @@ -296,8 +296,3 @@ def get_peer_state_info_nokia(hostname, community): 'oid': oid, 'community': community } - - - - -