Skip to content
Snippets Groups Projects
Commit 2923edff authored by Robert Latta's avatar Robert Latta
Browse files

formatting

parent bf24f8c8
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment