From fcdfdb16543559f06d2fc5653795edf15bd015e4 Mon Sep 17 00:00:00 2001 From: Andrew Bogott Date: Thu, 15 Dec 2011 16:09:25 -0600 Subject: Renamed the instance_dns_driver to dns_driver for more general use. For blueprint public-and-private-dns Change-Id: Ie3c86327839e9b855f5758a76d6484e5df598aa3 --- nova/flags.py | 2 +- nova/network/dns_driver.py | 41 +++++++++++++++++++++++++++++++++++++ nova/network/instance_dns_driver.py | 41 ------------------------------------- 3 files changed, 42 insertions(+), 42 deletions(-) create mode 100644 nova/network/dns_driver.py delete mode 100644 nova/network/instance_dns_driver.py (limited to 'nova') diff --git a/nova/flags.py b/nova/flags.py index 63534af96..599dcb0f7 100644 --- a/nova/flags.py +++ b/nova/flags.py @@ -366,7 +366,7 @@ DEFINE_string('compute_manager', 'nova.compute.manager.ComputeManager', DEFINE_string('console_manager', 'nova.console.manager.ConsoleProxyManager', 'Manager for console proxy') DEFINE_string('instance_dns_manager', - 'nova.network.instance_dns_driver.InstanceDNSManagerDriver', + 'nova.network.dns_driver.DNSDriver', 'DNS Manager for instance IPs') DEFINE_string('instance_dns_zone', '', 'DNS Zone for instance IPs') diff --git a/nova/network/dns_driver.py b/nova/network/dns_driver.py new file mode 100644 index 000000000..68f5255e4 --- /dev/null +++ b/nova/network/dns_driver.py @@ -0,0 +1,41 @@ +# Copyright 2011 Andrew Bogott for the Wikimedia Foundation +# +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + + +class DNSDriver(object): + """ Defines the DNS manager interface. Does nothing. """ + + def __init__(self): + pass + + def get_zones(self): + return [] + + def create_entry(self, _name, _address, _type, _dnszone): + pass + + def delete_entry(self, _name, _dnszone=""): + pass + + def rename_entry(self, _address, _name, _dnszone): + pass + + def modify_address(self, _name, _address, _dnszone): + pass + + def get_entries_by_address(self, _address, _dnszone=""): + return [] + + def get_entries_by_name(self, _name, _dnszone=""): + return [] diff --git a/nova/network/instance_dns_driver.py b/nova/network/instance_dns_driver.py deleted file mode 100644 index c0c6af893..000000000 --- a/nova/network/instance_dns_driver.py +++ /dev/null @@ -1,41 +0,0 @@ -# Copyright 2011 Andrew Bogott for the Wikimedia Foundation -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -class InstanceDNSManagerDriver(object): - """ Defines the instance DNS interface. Does nothing. """ - - def __init__(self): - pass - - def get_zones(self): - pass - - def create_entry(self, _name, _address, _type, _dnszone): - pass - - def delete_entry(self, _name, _dnszone=""): - pass - - def rename_entry(self, _address, _name, _dnszone): - pass - - def modify_address(self, _name, _address, _dnszone): - pass - - def get_entries_by_address(self, _address, _dnszone=""): - return [] - - def get_entries_by_name(self, _name, _dnszone=""): - return [] -- cgit