@@ -0,0 +1,543 @@
+from flow.petri_net.actions.base import BasicActionBase%0Afrom twisted.internet import defer%0A%0Aimport datetime%0Aimport logging%0A%0ALOG = logging.getLogger(__name__)%0A%0A%0Aclass ExpireNetAction(BasicActionBase):%0A    required_args = %5B'ttl_days'%5D%0A%0A    def execute(self, net, color_descriptor, active_tokens, service_interfaces):%0A        seconds = int(datetime.timedelta(%0A            int(self.args%5B'ttl_days'%5D)).total_seconds())%0A        LOG.debug('Expiring net keys in %25r seconds', seconds)%0A        net.expire(seconds)%0A        return %5B%5D, defer.succeed(None)%0A

add ExpireNetAction