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
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 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 | |
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
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 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 | |
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.