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
288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 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 |
|
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
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 493 494 495 496 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 |
|
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.