Skip to content

Commit dcdcca0

Browse files
authored
Update netbox_import.py
1 parent 6b6702c commit dcdcca0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

netbox_import.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,14 @@ def parse_tags(tags_string: str) -> List[Dict[str, str]]:
9595
def process_row(row: Dict[str, str], pbar: tqdm, netbox_instance: pynetbox.api) -> None:
9696
"""
9797
Process a single row from the CSV file and update/create IP addresses in Netbox.
98+
99+
Args:
100+
row (Dict[str, str]): Dictionary representing a single row from the CSV file
101+
pbar (tqdm): Progress bar instance
102+
netbox_instance (pynetbox.api): Netbox API instance
103+
104+
Raises:
105+
Exception: If there's an error processing the row
98106
"""
99107
logger = logging.getLogger(__name__)
100108
address = row.get('address', 'unknown')

0 commit comments

Comments
 (0)