Models
nautobot_golden_config.models
¶
Django Models for tracking the configuration compliance per feature and device.
ComplianceFeature
¶
Bases: PrimaryModel
ComplianceFeature details.
Source code in nautobot_golden_config/models.py
Meta
¶
ComplianceRule
¶
Bases: PrimaryModel
ComplianceRule details.
Source code in nautobot_golden_config/models.py
ConfigCompliance
¶
Bases: PrimaryModel
Configuration compliance details.
Source code in nautobot_golden_config/models.py
361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 |
|
Meta
¶
__str__()
¶
compliance_on_save()
¶
The actual configuration compliance happens here, but the details for actual compliance job would be found in FUNC_MAPPER.
Source code in nautobot_golden_config/models.py
remediation_on_save()
¶
The actual remediation happens here, before saving the object.
Source code in nautobot_golden_config/models.py
save(*args, **kwargs)
¶
The actual configuration compliance happens here, but the details for actual compliance job would be found in FUNC_MAPPER.
Source code in nautobot_golden_config/models.py
to_objectchange(action, *, related_object=None, object_data_extra=None, object_data_exclude=None)
¶
Remove actual and intended configuration from changelog.
Source code in nautobot_golden_config/models.py
ConfigPlan
¶
Bases: PrimaryModel
ConfigPlan for Golden Configuration Plan Model definition.
Source code in nautobot_golden_config/models.py
Meta
¶
ConfigRemove
¶
Bases: PrimaryModel
ConfigRemove for Regex Line Removals from Backup Configuration Model definition.
Source code in nautobot_golden_config/models.py
Meta
¶
ConfigReplace
¶
Bases: PrimaryModel
ConfigReplace for Regex Line Replacements from Backup Configuration Model definition.
Source code in nautobot_golden_config/models.py
Meta
¶
GoldenConfig
¶
Bases: PrimaryModel
Configuration Management Model.
Source code in nautobot_golden_config/models.py
Meta
¶
__str__()
¶
get_dynamic_group_device_pks()
staticmethod
¶
Get all Device PKs associated with GoldenConfigSetting DynamicGroups.
Source code in nautobot_golden_config/models.py
get_golden_config_device_ids()
classmethod
¶
to_objectchange(action, *, related_object=None, object_data_extra=None, object_data_exclude=None)
¶
Remove actual and intended configuration from changelog.
Source code in nautobot_golden_config/models.py
GoldenConfigSetting
¶
Bases: PrimaryModel
GoldenConfigSetting Model definition. This provides global configs instead of via configs.py.
Source code in nautobot_golden_config/models.py
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 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 |
|
Meta
¶
Set unique fields for model.
Provide ordering used in tables and get_device_to_settings_map. Sorting on weight is performed from the highest weight value to the lowest weight value. This is to ensure only one app settings could be applied per single device based on priority and name.
Source code in nautobot_golden_config/models.py
__str__()
¶
clean()
¶
Validate the scope and GraphQL query.
Source code in nautobot_golden_config/models.py
device_count()
¶
get_jinja_template_path_for_device(device)
¶
Get the Jinja template path for a device.
Source code in nautobot_golden_config/models.py
get_queryset()
¶
GoldenConfigSettingManager
¶
Bases: from_queryset(RestrictedQuerySet)
Manager for GoldenConfigSetting.
Source code in nautobot_golden_config/models.py
get_for_device(device)
¶
Return the highest weighted GoldenConfigSetting assigned to a device.
Source code in nautobot_golden_config/models.py
RemediationSetting
¶
Bases: PrimaryModel
RemediationSetting details.