Commit 96c5727
feat: define, modify, and remove ipsets (#166)
* feat: define, modify, and remove ipsets
User can specify `state: present` or `state: absent` and
`permanent:true` with new ipset arguments to configure ipsets
for use in zones using the `source` argument
- firewall_lib.py
- new argument: ipset - name of ipset
- new argument: ipset_type - type of ipset
- new argument: ipset_entry - contents of ipset
- protections against failure in check mode when enabling
and disabling ipsets for zones
- new file: tests/tests_ipsets.yml
- tests user defined ipsets (create, modify, delete, use)
- tests: unit: new test cases for triggering ipset warnings and errors
- docs: README, firewall_lib DOCUMENTATION for ipset feature
* Update README.md
Typo "--get-icmp-types" to "--get-ipset-types"
Co-authored-by: Richard Megginson <richm@stanfordalumni.org>
---------
Co-authored-by: Richard Megginson <richm@stanfordalumni.org>1 parent f5a6d46 commit 96c5727
File tree
5 files changed
+872
-33
lines changed- library
- tasks
- tests
- unit
5 files changed
+872
-33
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
354 | 354 | | |
355 | 355 | | |
356 | 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 | + | |
357 | 421 | | |
358 | 422 | | |
359 | 423 | | |
| |||
364 | 428 | | |
365 | 429 | | |
366 | 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 | + | |
367 | 461 | | |
368 | 462 | | |
369 | 463 | | |
| |||
427 | 521 | | |
428 | 522 | | |
429 | 523 | | |
430 | | - | |
| 524 | + | |
431 | 525 | | |
432 | 526 | | |
433 | 527 | | |
| |||
436 | 530 | | |
437 | 531 | | |
438 | 532 | | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
439 | 539 | | |
440 | 540 | | |
441 | 541 | | |
| |||
525 | 625 | | |
526 | 626 | | |
527 | 627 | | |
528 | | - | |
529 | | - | |
| 628 | + | |
| 629 | + | |
530 | 630 | | |
531 | 631 | | |
532 | | - | |
| 632 | + | |
533 | 633 | | |
534 | 634 | | |
535 | 635 | | |
536 | 636 | | |
537 | 637 | | |
538 | 638 | | |
539 | | - | |
| 639 | + | |
540 | 640 | | |
541 | 641 | | |
542 | 642 | | |
| |||
0 commit comments