aboutsummaryrefslogtreecommitdiff
path: root/rpkid/rpki/gui/app/glue.py
diff options
context:
space:
mode:
Diffstat (limited to 'rpkid/rpki/gui/app/glue.py')
-rw-r--r--rpkid/rpki/gui/app/glue.py23
1 files changed, 1 insertions, 22 deletions
diff --git a/rpkid/rpki/gui/app/glue.py b/rpkid/rpki/gui/app/glue.py
index bf68170e..b50bc557 100644
--- a/rpkid/rpki/gui/app/glue.py
+++ b/rpkid/rpki/gui/app/glue.py
@@ -30,7 +30,7 @@ from rpki.resource_set import (resource_set_as, resource_set_ipv4,
resource_range_ipv6)
from rpki.left_right import list_received_resources_elt
from rpki.irdb.zookeeper import Zookeeper
-from rpki.gui.app import models, settings
+from rpki.gui.app import models
from rpki.exceptions import BadIPResource
from django.contrib.auth.models import User
@@ -109,26 +109,6 @@ def list_received_resources(log, conf):
else:
print >>log, "error: unexpected pdu from rpkid type=%s" % type(pdu)
-
-def config_from_template(dest, a):
- """
- Create a new rpki.conf file from a generic template. Go line by line
- through the template and substitute directives from the dictionary 'a'.
-
- """
- with open(dest, 'w') as f:
- for r in open(settings.RPKI_CONF_TEMPLATE):
- words = r.split()
- if words:
- word = words[0].strip()
- if word in a:
- print >>f, "%s\t\t\t\t= %s\n" % (word, a[word])
- else:
- print >>f, r,
- else:
- print >>f, r,
-
-
def str_to_resource_range(prefix):
try:
r = resource_range_ipv4.parse_str(prefix)
@@ -136,7 +116,6 @@ def str_to_resource_range(prefix):
r = resource_range_ipv6.parse_str(prefix)
return r
-
def get_email_list(conf):
"""Return a list of the contact emails for this user.