include manufacturer
This commit is contained in:
parent
d8700a7b20
commit
522501d598
2 changed files with 9 additions and 0 deletions
|
@ -53,6 +53,9 @@ class Entry(BaseModel):
|
|||
address: str
|
||||
port: int
|
||||
username: str
|
||||
manufacturer: str
|
||||
model: str
|
||||
part_number: str
|
||||
|
||||
|
||||
Config = TypeAdapter(dict[str, Entry])
|
||||
|
|
|
@ -48,6 +48,9 @@ def main():
|
|||
),
|
||||
"port": port,
|
||||
"username": "jcollie",
|
||||
"manufacturer": device.device_type.manufacturer.name,
|
||||
"model": device.device_type.model,
|
||||
"part_number": device.device_type.part_number,
|
||||
}
|
||||
|
||||
print(name, str(ipaddress.ip_interface(device.primary_ip4.address).ip))
|
||||
|
@ -76,6 +79,9 @@ def main():
|
|||
),
|
||||
"port": port,
|
||||
"username": "apc",
|
||||
"manufacturer": device.device_type.manufacturer.name,
|
||||
"model": device.device_type.model,
|
||||
"part_number": device.device_type.part_number,
|
||||
}
|
||||
|
||||
print(name, str(ipaddress.ip_interface(device.primary_ip4.address).ip))
|
||||
|
|
Loading…
Reference in a new issue