Skip to content

Commit

Permalink
Merge pull request #108 from fabric-testbed/reservation_info
Browse files Browse the repository at this point in the history
added reservation property in the user node object
  • Loading branch information
ibaldin committed Mar 1, 2022
2 parents 4a48f43 + 6cd54a2 commit b891327
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fim/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#
__VERSION__ = "1.1.3"
__VERSION__ = "1.1.4"
11 changes: 10 additions & 1 deletion fim/user/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
from ..slivers.network_node import NodeType
from ..slivers.network_service import ServiceType, NetworkServiceInfo
from ..slivers.component_catalog import ComponentModelType
from ..slivers.capacities_labels import CapacityHints, Location
from ..slivers.capacities_labels import CapacityHints, Location, ReservationInfo


class Node(ModelElement):
Expand Down Expand Up @@ -153,6 +153,15 @@ def capacity_hints(self, value: CapacityHints):
if self.__dict__.get('topo', None) is not None:
self.set_property('capacity_hints', value)

@property
def reservation_info(self):
return self.get_property('reservation_info') if self.__dict__.get('topo', None) is not None else None

@reservation_info.setter
def reservation_info(self, value: ReservationInfo):
if self.__dict__.get('topo', None) is not None:
self.set_property('reservation_info', value)

@property
def location(self):
return self.get_property('location') if self.__dict__.get('topo', None) is not None else None
Expand Down

0 comments on commit b891327

Please sign in to comment.