Viranch Mehta
47a898b1dc
Wrap subnet support behind a SUPPORTS_ flag
2023-04-09 08:15:44 -07:00
Ross McFarland
6be0a8133a
isort import formatting
2023-01-22 13:54:19 -08:00
Ross McFarland
b54678bed9
Refactor YamlProvider to add get_filenames
...
Makes it easier to inherit from YamlProvider to add custom filename
handling
2022-12-09 08:47:02 -08:00
Ross McFarland
66debc0b80
Use super() now that we require python3, less error prone
2022-09-15 14:25:47 -07:00
Ross McFarland
d7880c084d
Remove from __futures__ bits, all are now manditory
2022-09-15 14:10:21 -07:00
Ross McFarland
b4792707f8
Merge remote-tracking branch 'origin/main' into idna-internally
2022-09-12 14:56:01 -07:00
Ross McFarland
2e3d325f71
YamlProvider.SUPPORTS dynamically returns the list of registered types
2022-08-27 15:53:56 -07:00
Ross McFarland
557b80f784
Implement YamlProvider.supports that always says yes
2022-08-27 15:40:02 -07:00
Ross McFarland
2d0f2ccc5c
Add idna tests of eligible_zones and fix some messages/bugs
2022-08-18 20:10:11 -07:00
Ross McFarland
a33235d608
YamlProvider idna/utf-8 support, prefers utf8
2022-08-18 08:26:57 -07:00
Ross McFarland
c1ef45e0fd
Convert Manager.config['zones'] to IdnaDict
...
- print Zone.decoded_name to logs for better readability
- Prefer decoded name in YamlProvider
2022-08-17 10:29:32 -07:00
Ross McFarland
02e07f4209
Merge remote-tracking branch 'origin/master' into dump-support-output-provider
2022-07-22 16:06:51 -07:00
Ross McFarland
e116d26eec
Implement black formatting
2022-07-04 12:27:39 -07:00
Ross McFarland
17c294042f
Implement a sketch of --output-provider support for dump
2022-04-14 10:19:33 -07:00
Ross McFarland
f43833e9bb
Make YamlProvider.SUPPORTS_ROOT_NS configurable, default True
...
This will result in less churn in tests for root NS support and allow us
to enable/disable things easily as needed.
2022-02-16 14:38:10 -08:00
Ross McFarland
33a10eada4
Base support for managing root NS records
...
* Zone object no longer treats them special, some tests needed adjusting
b/c of this, some provider's tests may also need adjusting, though
they should not plan changes since they won't (yet) have
SUPPORTS_ROOT_NS
* _process_desired_zone filters and warns when not supported
* YamlProvider supports them
* TinyDnsBaseSource supports them
2022-02-08 10:26:49 -08:00
Viranch Mehta
43e02c916c
enum for status flag of pool values
2021-09-21 01:54:55 -07:00
Viranch Mehta
c79572a45f
Merge branch 'master' into pool-value-up
2021-09-20 21:04:07 -07:00
Viranch Mehta
d1d0de0c60
Fix typo in SUPPORTS_MULTIVALUE_PTR flag name
2021-09-17 21:59:16 -07:00
Viranch Mehta
dae3dd55d7
YamlProvider supports everything
2021-09-17 21:56:05 -07:00
Ross McFarland
c36091062a
f-strings for YamlProvider
2021-09-04 18:41:30 -07:00
Viranch Mehta
2021fcc00c
yaml supports multi value PTR
2021-08-18 11:25:43 -07:00
Brian E Clow
c5efba89fe
Adding yaml support and testing for URLFWD
2021-07-22 14:32:09 -07:00
Mark Tearle
9d4bd0aaec
Add support for LOC records
2021-02-09 20:41:37 +08:00
Ross McFarland
4ce2563d2e
Remove the rest of the . ending files, clean up code and tests for better coverage
2021-01-28 13:24:35 -08:00
Jonathan Leroy
de51e5f531
Add support for DNAME records
2020-10-26 22:18:35 +01:00
Ross McFarland
f1cc392bc4
Include populate_should_replace in yaml example.
2020-01-09 07:41:30 -08:00
Ross McFarland
a078ec9d31
Move to populate_should_replace rather then OverridingYamlProvider
2020-01-06 14:16:47 -08:00
Ross McFarland
135f826b7e
Add OverridingYamlProvider and tests
2019-04-27 15:08:09 -07:00
Christian Funkhouser
a65181b61d
Document directory requirements more clearly.
...
Signed-off-by: Christian Funkhouser <cfunkhouser@heroku.com >
2019-04-08 17:22:26 -04:00
Christian Funkhouser
f239eb1aa8
Don't use classmethod for listing YAML files
...
Signed-off-by: Christian Funkhouser <cfunkhouser@heroku.com >
2019-04-08 17:13:28 -04:00
Christian Funkhouser
2021a2caea
Construct YamlProvider logger more cleverly.
...
Signed-off-by: Christian Funkhouser <cfunkhouser@heroku.com >
2019-04-08 17:09:29 -04:00
Christian Funkhouser
689043cd3d
Merge SplitYamlProvider and YamlProvider tests
...
Signed-off-by: Christian Funkhouser <cfunkhouser@heroku.com >
2019-04-08 17:07:45 -04:00
Christian Funkhouser
98dacd2dde
Add proper tests for SplitYamlProvider
...
The SplitYamlProvider itself now requires a directory matching the
zone name under its directory to contain all YAML files. This doesn't
actually change the intended usage at all, just how the configuration
file is laid out.
Signed-off-by: Christian Funkhouser <cfunkhouser@heroku.com >
2019-04-08 13:59:45 -04:00
Christian Funkhouser
3bc0e0ad3e
File load success is too verbose
...
Signed-off-by: Christian Funkhouser <cfunkhouser@heroku.com >
2019-04-08 13:59:44 -04:00
Christian Funkhouser
ffc4e2f957
Add SplitYamlProvider
...
SplitYamlProvider extends and behaves similarly to YamlProvider, but
organizes the zone in multiple files by record, insteat of in a
monolithic YAML file.
YamlProvider has been slightly modified to make its extension easier.
Signed-off-by: Christian Funkhouser <cfunkhouser@heroku.com >
2019-04-08 13:59:44 -04:00
Ross McFarland
303d0532c8
Implement SUPPORTS_DYNAMIC functionality, no providers
2018-12-03 14:40:43 -08:00
Matt
933a56d8f9
Add - (non-empty) Record._octodns dict to YAML file output.
2018-11-04 10:32:06 +11:00
Ross McFarland
cee7677ae4
Implement Zone.add_record lenient across our providers
2018-05-30 12:41:59 -07:00
Ross McFarland
4d180ed991
Implement populate exists for YamlProvider
2018-01-21 14:41:54 -08:00
Ross McFarland
454f7f8c8f
Add formal CAA support to YamlProvider
2017-11-08 06:26:18 -08:00
Ross McFarland
a97818b6ec
populating existing provider state is lenient
...
- adds lenient flag to Record.new, problems during validation are just
warnings if it's true
- target populate calls during the plan phase pass lenient=True
- make all of the provider.populate call logging consistent including both
target and lenient
- add source=self to Record.new in a few places that were missing it
2017-06-23 09:01:25 -07:00
Ross McFarland
852c101388
Switch to an explicit SUPPORTS setup
2017-06-21 17:08:16 -07:00
Ross McFarland
046cde43b2
Make sorting enforcement optional with YamlProvider
2017-06-19 22:44:34 -07:00
Ross McFarland
da4632fb7c
docstrings for each provider showing config
2017-03-17 10:03:27 -07:00
Ross McFarland
7957a4c018
Initial import of OSS OctoDNS
2017-03-15 15:38:10 -07:00