diff --git a/datafiles/schema.sql b/datafiles/schema.sql
index 6239ff33aa5c90f56c6daebe0845e696e262ba5f..ad8d25f5f0401b84f5cfc2b096cf25c92c6a8033 100644
--- a/datafiles/schema.sql
+++ b/datafiles/schema.sql
@@ -39,7 +39,7 @@ CREATE TABLE service_connections (
dest_network text NOT NULL,
dest_port text NOT NULL,
dest_label label,
- start_time timestamp NOT NULL,
+ start_time timestamp, -- null = now
end_time timestamp NOT NULL,
symmetrical boolean NOT NULL,
directionality directionality NOT NULL,
diff --git a/opennsa/nsa.py b/opennsa/nsa.py
index a1a2b0b81653093f988d2018b4534e23495368e6..4b56c9a88881354361bef83c25ecc128a8c3c052 100644
--- a/opennsa/nsa.py
+++ b/opennsa/nsa.py
@@ -375,7 +375,8 @@ class Schedule(object):
def __init__(self, start_time, end_time):
# Must be datetime instances without tzinfo
- assert start_time.tzinfo is None, 'Start time must NOT have time zone'
+ if start_time is not None:
+ assert start_time.tzinfo is None, 'Start time must NOT have time zone'
assert end_time.tzinfo is None, 'End time must NOT have time zone'
self.start_time = start_time