Inventory models
AntaInventoryInput ¶
Bases: BaseModel
User’s inventory model.
Attributes:
Name | Type | Description |
---|---|---|
networks |
List[AntaInventoryNetwork], Optional
|
List of AntaInventoryNetwork objects for networks. |
hosts |
List[AntaInventoryHost], Optional
|
List of AntaInventoryHost objects for hosts. |
range |
List[AntaInventoryRange], Optional
|
List of AntaInventoryRange objects for ranges. |
AntaInventoryHost ¶
Bases: BaseModel
Host definition for user’s inventory.
Attributes:
Name | Type | Description |
---|---|---|
host |
IPvAnyAddress
|
IPv4 or IPv6 address of the device |
port |
int
|
(Optional) eAPI port to use Default is 443. |
name |
str
|
(Optional) Name to display during tests report. Default is hostname:port |
tags |
List[str]
|
List of attached tags read from inventory file. |
AntaInventoryNetwork ¶
AntaInventoryRange ¶
Last update:
July 19, 2023