aboutsummaryrefslogtreecommitdiff
path: root/rpkid/rpki/gui/app/AllocationTree.py
diff options
context:
space:
mode:
Diffstat (limited to 'rpkid/rpki/gui/app/AllocationTree.py')
-rw-r--r--rpkid/rpki/gui/app/AllocationTree.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/rpkid/rpki/gui/app/AllocationTree.py b/rpkid/rpki/gui/app/AllocationTree.py
index 73277234..f51ed430 100644
--- a/rpkid/rpki/gui/app/AllocationTree.py
+++ b/rpkid/rpki/gui/app/AllocationTree.py
@@ -131,8 +131,11 @@ class AllocationTreeIP(AllocationTree):
raise ValueError, 'Unsupported IP range type'
def supported_actions(self):
- '''add a link to issue a roa for this IP range'''
- return[' | <a href="%s/roa">roa</a>' % (self.resource.get_absolute_url(),)]
+ '''add a link to issue a ROA for this IP range'''
+ if self.resource.is_prefix():
+ return [' | <a href="%s/roa">roa</a>' % self.resource.get_absolute_url()]
+ else:
+ return []
def is_allocated(self):
'''Return True if this IP range is allocated to a child or used