mirror of
https://github.com/github/octodns.git
synced 2024-05-11 05:55:00 +00:00
Merge remote-tracking branch 'origin/master' into idna-internally
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
## v0.9.18 - 2022-09-14 - Subzone handling
|
||||
## v0.9.18 - 2022-08-14 - Subzone handling
|
||||
|
||||
* Fixed issue with sub-zone handling introduced in 0.9.18
|
||||
|
||||
## v0.9.18 - 2022-09-09 - Internationalization
|
||||
## v0.9.18 - 2022-08-09 - Internationalization
|
||||
|
||||
* Added octodns.idna idna_encode/idna_decode helpers, providers will need to
|
||||
individually add support via these helpers though :-/
|
||||
|
||||
@@ -13,6 +13,27 @@ from .base import BaseProcessor
|
||||
|
||||
|
||||
class TypeAllowlistFilter(BaseProcessor):
|
||||
'''Only manage records of the specified type(s).
|
||||
|
||||
Example usage:
|
||||
|
||||
processors:
|
||||
only-a-and-aaaa:
|
||||
class: octodns.processor.filter.TypeRejectlistFilter
|
||||
rejectlist:
|
||||
- A
|
||||
- AAAA
|
||||
|
||||
zones:
|
||||
exxampled.com.:
|
||||
sources:
|
||||
- config
|
||||
processors:
|
||||
- only-a-and-aaaa
|
||||
targets:
|
||||
- ns1
|
||||
'''
|
||||
|
||||
def __init__(self, name, allowlist):
|
||||
super(TypeAllowlistFilter, self).__init__(name)
|
||||
self.allowlist = set(allowlist)
|
||||
@@ -29,6 +50,26 @@ class TypeAllowlistFilter(BaseProcessor):
|
||||
|
||||
|
||||
class TypeRejectlistFilter(BaseProcessor):
|
||||
'''Ignore records of the specified type(s).
|
||||
|
||||
Example usage:
|
||||
|
||||
processors:
|
||||
ignore-cnames:
|
||||
class: octodns.processor.filter.TypeRejectlistFilter
|
||||
rejectlist:
|
||||
- CNAME
|
||||
|
||||
zones:
|
||||
exxampled.com.:
|
||||
sources:
|
||||
- config
|
||||
processors:
|
||||
- ignore-cnames
|
||||
targets:
|
||||
- route53
|
||||
'''
|
||||
|
||||
def __init__(self, name, rejectlist):
|
||||
super(TypeRejectlistFilter, self).__init__(name)
|
||||
self.rejectlist = set(rejectlist)
|
||||
|
||||
Reference in New Issue
Block a user