From 2923edffed28b4a3a0bf8774177dad95db43c5d3 Mon Sep 17 00:00:00 2001
From: Robert Latta <robert.latta@geant.org>
Date: Mon, 16 Dec 2024 09:55:02 +0000
Subject: [PATCH] formatting

---
 inventory_provider/snmp.py | 13 ++++---------
 1 file changed, 4 insertions(+), 9 deletions(-)

diff --git a/inventory_provider/snmp.py b/inventory_provider/snmp.py
index b3b6852..89758f1 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
         }
-
-
-
-
-
-- 
GitLab