Netbox Update Device Facts Task¤
task api name:
update_device_facts
Limitations¤
Datasource nornir
uses NAPALM get_facts
getter and as such only supports these device platforms:
- Arista EOS
- Cisco IOS
- Cisco IOSXR
- Cisco NXOS
- Juniper JUNOS
Update Device Facts Sample Usage¤
NORFAB Netbox Update Device Facts Command Shell Reference¤
NorFab shell supports these command options for Netbox update_device_facts
task:
Python API Reference¤
Function to update device facts in Netbox using information provided by NAPALM get_facts getter:
- serial number
Parameters:
Name | Type | Description | Default |
---|---|---|---|
instance
|
str
|
Netbox instance name |
None
|
dry_run
|
bool
|
return information that would be pushed to Netbox but do not push it |
False
|
datasource
|
str
|
service name to use to retrieve devices' data, default is nornir parse task |
'nornir'
|
timeout
|
int
|
seconds to wait before timeout data retrieval job |
60
|
batch_size
|
int
|
number of devices to process at a time |
10
|
kwargs
|
any additional arguments to send to service for device data retrieval |
{}
|
Returns:
Type | Description |
---|---|
dict
|
dictionary keyed by device name with updated details |
Source code in norfab\workers\netbox_worker.py
1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 |
|