]> git.ipfire.org Git - oddments/ddns.git/commitdiff
Merge remote-tracking branch 'stevee/variomedia.de'
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 16 Jun 2014 09:55:45 +0000 (11:55 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 16 Jun 2014 09:55:45 +0000 (11:55 +0200)
Conflicts:
src/ddns/__init__.py
src/ddns/providers.py

1  2 
ddns.conf.sample
src/ddns/__init__.py
src/ddns/providers.py

Simple merge
index ddc995e97609df89c9cb2a4344585b5cffa5025e,d91d9f0aa85f506fdcbd75e726b1c9a7342512db..f7318878326dafeb0eaf53127990cec600702e35
@@@ -99,7 -98,7 +99,8 @@@ class DDNSCore(object)
                        DDNSProviderNOIP,
                        DDNSProviderLightningWireLabs,
                        DDNSProviderSelfhost,
 +                      DDNSProviderSPDNS,
+                       DDNSProviderVariomedia,
                ):
                        self.register_provider(provider)
  
index 3422cd074cd45f501f7d72aa3ab776cd84df1f1e,2ac3caf89092d31fb4deec7c63fbd977cd35ece3..c831b440256ca4c6189abcc341c7d2d34e83c49a
@@@ -528,20 -490,25 +528,44 @@@ class DDNSProviderSelfhost(DDNSProvider
                if not match:
                        raise DDNSUpdateError
  
 +
 +class DDNSProviderSPDNS(DDNSProviderDynDNS):
 +      INFO = {
 +              "handle"    : "spdns.org",
 +              "name"      : "SPDNS",
 +              "website"   : "http://spdns.org/",
 +              "protocols" : ["ipv4",]
 +      }
 +
 +      # Detailed information about request and response codes are provided
 +      # by the vendor. They are using almost the same mechanism and status
 +      # codes as dyndns.org so we can inherit all those stuff.
 +      #
 +      # http://wiki.securepoint.de/index.php/SPDNS_FAQ
 +      # http://wiki.securepoint.de/index.php/SPDNS_Update-Tokens
 +
 +      url = "https://update.spdns.de/nic/update"
++
++
+ class DDNSProviderVariomedia(DDNSProviderDynDNS):
+       INFO = {
+               "handle"   : "variomedia.de",
+               "name"     : "Variomedia",
+               "website"  : "http://www.variomedia.de/",
+               "protocols" : ["ipv6", "ipv4",]
+       }
+       # Detailed information about the request can be found here
+       # https://dyndns.variomedia.de/
+       url = "https://dyndns.variomedia.de/nic/update"
+       @property
+       def proto(self):
+               return self.get("proto")
+       def _prepare_request_data(self):
+               data = {
+                       "hostname" : self.hostname,
+                       "myip"     : self.get_address(self.proto)
+               }