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
ComplianceRule
¶
Bases: PrimaryModel
ComplianceRule details.
Source code in nautobot_golden_config/models.py
186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 |
|
ConfigCompliance
¶
Bases: PrimaryModel
Configuration compliance details.
Source code in nautobot_golden_config/models.py
265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 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 |
|
Meta
¶
__str__()
¶
get_absolute_url()
¶
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_csv()
¶
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
ConfigRemove
¶
Bases: PrimaryModel
ConfigRemove for Regex Line Removals from Backup Configuration Model defintion.
Source code in nautobot_golden_config/models.py
ConfigReplace
¶
Bases: PrimaryModel
ConfigReplace for Regex Line Replacements from Backup Configuration Model defintion.
Source code in nautobot_golden_config/models.py
GoldenConfig
¶
Bases: PrimaryModel
Configuration Management Model.
Source code in nautobot_golden_config/models.py
Meta
¶
__str__()
¶
to_csv()
¶
Indicates model fields to return as csv.
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
GoldenConfigSetting
¶
Bases: PrimaryModel
GoldenConfigSetting Model defintion. This provides global configs instead of via configs.py.
Source code in nautobot_golden_config/models.py
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 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 |
|
scope
writable
property
¶
Returns filter from DynamicGroup.
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 plugin 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.