X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fstorage%2Fmodel.py;fp=sfa%2Fstorage%2Fmodel.py;h=3f600d4767dd7e38b01da1188048b27fe313a5b2;hb=95591b4019b874168027d0b683503fbbbe3d9c69;hp=153529751a2e3c2f7ccd7c7390f90cec9a0b6a27;hpb=7f25366ea485a55f5a24cca8156d52a1dd302263;p=sfa.git diff --git a/sfa/storage/model.py b/sfa/storage/model.py index 15352975..3f600d47 100644 --- a/sfa/storage/model.py +++ b/sfa/storage/model.py @@ -317,6 +317,7 @@ class SliverAllocation(Base,AlchemyObj): sliver_id = Column(String, primary_key=True) client_id = Column(String) component_id = Column(String) + slice_urn = Column(String) allocation_state = Column(String) def __init__(self, **kwds): @@ -326,6 +327,8 @@ class SliverAllocation(Base,AlchemyObj): self.client_id = kwds['client_id'] if 'component_id' in kwds: self.component_id = kwds['component_id'] + if 'slice_urn' in kwds: + self.slice_urn = kwds['slice_urn'] if 'allocation_state' in kwds: self.allocation_state = kwds['allocation_state'] @@ -389,6 +392,7 @@ class SliverAllocation(Base,AlchemyObj): record.sliver_id = self.sliver_id record.client_id = self.client_id record.component_id = self.component_id + record.slice_urn = self.slice_urn record.allocation_state = self.allocation_state dbsession.commit()