From e3332e287120c2eba2d43a3f93f7848f0c3db27c Mon Sep 17 00:00:00 2001 From: Michael Elkins Date: Mon, 10 Mar 2014 19:55:29 +0000 Subject: Remove delegated resources from the labuser* accounts when resetting the demo. see #544 svn path=/trunk/; revision=5701 --- rpkid/portal-gui/scripts/rpkigui-reset-demo.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'rpkid/portal-gui/scripts/rpkigui-reset-demo.py') diff --git a/rpkid/portal-gui/scripts/rpkigui-reset-demo.py b/rpkid/portal-gui/scripts/rpkigui-reset-demo.py index e1ff6134..0a3a1537 100644 --- a/rpkid/portal-gui/scripts/rpkigui-reset-demo.py +++ b/rpkid/portal-gui/scripts/rpkigui-reset-demo.py @@ -1,4 +1,4 @@ -# Copyright (C) 2012, 2013 SPARTA, Inc. a Parsons Company +# Copyright (C) 2012, 2013, 2014 SPARTA, Inc. a Parsons Company # # Permission to use, copy, modify, and distribute this software for any # purpose with or without fee is hereby granted, provided that the above @@ -39,3 +39,10 @@ for n in xrange(1, 33): conf.clear_alerts() print '... updating resource certificate cache' list_received_resources(sys.stdout, conf) + + # Remove delegated resources (see https://trac.rpki.net/ticket/544) + # Note that we do not remove the parent-child relationship, just the + # resources. + for child in conf.children(): + child.asns.delete() + child.address_ranges.delete() -- cgit v1.2.3