Models
nautobot_device_lifecycle_mgmt.models
¶
Django models for the Lifecycle Management app.
CVELCM
¶
Bases: PrimaryModel
CVELCM is a model representation of a cve vulnerability record.
Source code in nautobot_device_lifecycle_mgmt/models.py
Meta
¶
ContactLCM
¶
Bases: PrimaryModel
ContactLCM is a model representation of a contact used in Contracts.
Source code in nautobot_device_lifecycle_mgmt/models.py
Meta
¶
__str__()
¶
clean()
¶
Override clean to do custom validation.
Source code in nautobot_device_lifecycle_mgmt/models.py
ContractLCM
¶
Bases: PrimaryModel
ContractLCM model for app.
Source code in nautobot_device_lifecycle_mgmt/models.py
497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 |
|
active
property
¶
Return 'True' if a contract is active, return 'False' if it has expired.
An active contract is a contract that has not yet expired. If a contract does not have an end date it cannot expire. If the current date is less than or equal to the end date of a contract, it is active. The last day of a contract is still considered to be in the 'active' period.
expired
property
¶
Return 'True' if a contract has expired, return 'False' if it is active.
If a contract does not have an end date it cannot expire. If the current date is greater than the end date of a contract, it is expired. The last day of a contract is still considered to be in the 'active' period.
Meta
¶
__str__()
¶
clean()
¶
Override clean to do custom validation.
save(*args, **kwargs)
¶
Override save to assert a full clean.
ContractLCMQuerySet
¶
Bases: RestrictedQuerySet
Queryset for ContactLCM
objects.
Source code in nautobot_device_lifecycle_mgmt/models.py
get_for_object(obj)
¶
Return all ContractLCM
objets assigned to the given object.
Source code in nautobot_device_lifecycle_mgmt/models.py
DeviceHardwareNoticeResult
¶
Bases: PrimaryModel
Device hardware notice details model.
Source code in nautobot_device_lifecycle_mgmt/models.py
DeviceSoftwareValidationResult
¶
Bases: PrimaryModel
Device Software validation details model.
Source code in nautobot_device_lifecycle_mgmt/models.py
HardwareLCM
¶
Bases: PrimaryModel
HardwareLCM model for app.
Source code in nautobot_device_lifecycle_mgmt/models.py
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 |
|
expired
property
¶
Return True if the current date is greater than the end of support date.
If the end of support date has not been provided, return False. If the current date is less than or equal to the end of support date, return False.
Meta
¶
Meta attributes for the HardwareLCM class.
Source code in nautobot_device_lifecycle_mgmt/models.py
__str__()
¶
String representation of HardwareLCMs.
Source code in nautobot_device_lifecycle_mgmt/models.py
clean()
¶
Override clean to do custom validation.
Source code in nautobot_device_lifecycle_mgmt/models.py
save(*args, **kwargs)
¶
Override save to assert a full clean.
InventoryItemSoftwareValidationResult
¶
Bases: PrimaryModel
InventoryItem Software validation details model.
Source code in nautobot_device_lifecycle_mgmt/models.py
Meta
¶
Meta attributes for InventoryItemSoftwareValidationResult.
Source code in nautobot_device_lifecycle_mgmt/models.py
__str__()
¶
String representation of InventoryItemSoftwareValidationResult.
Source code in nautobot_device_lifecycle_mgmt/models.py
ProviderLCM
¶
Bases: OrganizationalModel
ProviderLCM model for app.
Source code in nautobot_device_lifecycle_mgmt/models.py
SoftwareImageLCM
¶
Bases: PrimaryModel
SoftwareImageLCM model.
Source code in nautobot_device_lifecycle_mgmt/models.py
Meta
¶
Meta attributes for SoftwareImageLCM.
Source code in nautobot_device_lifecycle_mgmt/models.py
SoftwareImageLCMQuerySet
¶
Bases: RestrictedQuerySet
Queryset for SoftwareImageLCM
objects.
Source code in nautobot_device_lifecycle_mgmt/models.py
get_for_object(obj)
¶
Return all SoftwareImageLCM
assigned to the given object.
Source code in nautobot_device_lifecycle_mgmt/models.py
SoftwareLCM
¶
Bases: PrimaryModel
Software Life-Cycle Management model.
Source code in nautobot_device_lifecycle_mgmt/models.py
Meta
¶
Meta attributes for SoftwareLCM.
Source code in nautobot_device_lifecycle_mgmt/models.py
SoftwareLCMQuerySet
¶
Bases: RestrictedQuerySet
Queryset for SoftwareLCM
objects.
Source code in nautobot_device_lifecycle_mgmt/models.py
get_for_object(obj)
¶
Return all SoftwareLCM
assigned to the given object.
Source code in nautobot_device_lifecycle_mgmt/models.py
ValidatedSoftwareLCM
¶
Bases: PrimaryModel
ValidatedSoftwareLCM model.
Source code in nautobot_device_lifecycle_mgmt/models.py
valid
property
¶
Return True if software is currently valid, else return False.
Meta
¶
Meta attributes for ValidatedSoftwareLCM.
Source code in nautobot_device_lifecycle_mgmt/models.py
__str__()
¶
clean()
¶
Override clean to do custom validation.
Source code in nautobot_device_lifecycle_mgmt/models.py
save(*args, **kwargs)
¶
Override save to assert a full clean.
ValidatedSoftwareLCMQuerySet
¶
Bases: RestrictedQuerySet
Queryset for ValidatedSoftwareLCM
objects.
Source code in nautobot_device_lifecycle_mgmt/models.py
get_for_object(obj)
¶
Return all ValidatedSoftwareLCM
assigned to the given object.
Source code in nautobot_device_lifecycle_mgmt/models.py
VulnerabilityLCM
¶
Bases: PrimaryModel
VulnerabilityLCM is a model representation of vulnerability that affects a device.