Commit c42ba429 authored by Jelte Jansen's avatar Jelte Jansen
Browse files

move 'lib' part of bind-cfgd into src/lib/bind-cfgd/python/


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/f2f200910@140 e5f2f494-b856-4b98-b285-d166d9295462
parent f70b2d9f
#!/bin/sh #!/bin/sh
# use build time srcdir for now # use build time srcdir for now
BINPATH=@abs_top_srcdir@/src/lib/bind-cfgd BINPATH=@abs_top_srcdir@/src/lib/bind-cfgd/python
LIBPATH=@abs_top_srcdir@/src/lib/cc/python LIBPATH=@abs_top_srcdir@/src/lib/cc/python
PYTHONPATH=${LIBPATH}:${PYTHONPATH} python ${BINPATH}/bind-cfgd.py PYTHONPATH=${LIBPATH}:${PYTHONPATH} python ${BINPATH}/bind-cfgd.py
......
import ISC import ISC
class ConfigData:
def __init__(self):
self.zones = {}
def add_zone(self, zone_name, zone_file):
self.zones[zone_name] = zone_file
def remove_zone(self, zone_name):
del self.zones[zone_name]
class ConfigManager: class ConfigManager:
def __init__(self): def __init__(self):
self.cc = ISC.CC.Session() self.cc = ISC.CC.Session()
self.cc.group_subscribe("ConfigManager") self.cc.group_subscribe("ConfigManager")
self.config
def read_config(self, filename): def read_config(self, filename):
pass pass
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment