diff --git a/netjsonconfig/backends/openwrt/converters/ddns.py b/netjsonconfig/backends/openwrt/converters/ddns.py index 6547c0b5f..32ea34556 100644 --- a/netjsonconfig/backends/openwrt/converters/ddns.py +++ b/netjsonconfig/backends/openwrt/converters/ddns.py @@ -13,9 +13,7 @@ class Ddns(OpenWrtConverter): def to_intermediate_loop(self, block, result, index=None): if block: provider_list = self.__intermediate_providers(block.pop('providers', {})) - block.update( - {'.type': 'ddns', '.name': block.pop('id', 'global'),} - ) + block.update({'.type': 'ddns', '.name': block.pop('id', 'global')}) result.setdefault('ddns', []) result['ddns'] = [self.sorted_dict(block)] + provider_list return result diff --git a/netjsonconfig/backends/openwrt/schema.py b/netjsonconfig/backends/openwrt/schema.py index 35f897eba..37b5cb1c8 100644 --- a/netjsonconfig/backends/openwrt/schema.py +++ b/netjsonconfig/backends/openwrt/schema.py @@ -476,8 +476,8 @@ "ip_source": { "type": "string", "title": "ip_source", - "description": "specifies the source to detect the local IP: 'network' uses " - "'ip_network', 'web' uses 'ip_url', 'interface' uses " + "description": "specifies the source to detect the local IP: " + "'network' uses 'ip_network', 'web' uses 'ip_url', 'interface' uses " "'ip_interface', 'script' uses 'ip_script'", "enum": ["network", "web", "interface", "script"], "default": "network", @@ -492,7 +492,8 @@ "domain": { "type": "string", "title": "domain", - "description": "the DNS name to update; this property can also be used for " + "description": "the DNS name to update;" + " this property can also be used for " "special multihost update configurations supported by" " some providers", "propertyOrder": 5, @@ -518,7 +519,8 @@ "update_url": { "type": "string", "title": "update_url", - "description": "url to the DDNS service to use if 'service_name' is not set", + "description": "url to the DDNS service to use" + " if 'service_name' is not set", "propertyOrder": 9, }, "update_script": { @@ -530,8 +532,8 @@ "ip_network": { "type": "string", "title": "ip_network", - "description": "network from /etc/config/network to use for detecting the IP " - "if 'ip_source' is set to 'network'", + "description": "network from /etc/config/network to use" + " for detecting the IP if 'ip_source' is set to 'network'", "default": "wan", "propertyOrder": 11, }, @@ -545,15 +547,15 @@ "ip_interface": { "type": "string", "title": "ip_interface", - "description": "local interface to use for detecting the IP if 'ip_source' is" - " set to 'interface'", + "description": "local interface to use" + " for detecting the IP if 'ip_source' is set to 'interface'", "propertyOrder": 13, }, "ip_script": { "type": "string", "title": "ip_script", - "description": "script to use for detecting the IP if 'ip_source' is set to " - "'script'", + "description": "script to use for detecting the IP" + " if 'ip_source' is set to 'script'", "propertyOrder": 14, }, "use_syslog": {