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
325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 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 |
|
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
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 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 |
|
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_queryset()
¶
RemediationSetting
¶
Bases: PrimaryModel
RemediationSetting details.