+++ /dev/null
-###########################################################################
-# Copyright (C) 2012 by
-# <savakian@sfa2.grenoble.senslab.info>
-#
-# Copyright: See COPYING file that comes with this distribution
-#
-###########################################################################
-from sfa.rspecs.elements.element import Element
-
-class Timeslot(Element):
-
- fields = [
- 'date',
- 'start_time',
- 'timezone',
- 'duration'
- ]
+++ /dev/null
-from sfa.rspecs.elements.element import Element
-from sfa.rspecs.elements.timeslot import Timeslot
-import sys
-
-class Slabv1Timeslot :
- @staticmethod
- def get_slice_timeslot(xml, filter={}):
- timeslot = None
- print>>sys.stderr, "\r\n \r\n \t\t \t SLABV1TIMESLOT.pY >>>>>>>>>>>>>>>>>>>>>>>>>>>>> \t get_slice_timeslot "
- xpath = '//default:timeslot | //timeslot'
- timeslot_elems = xml.xpath(xpath)
- print>>sys.stderr, "\r\n \r\n \t\t \t SLABV1TIMESLOT.pY >>>>>>>>>>>>>>>>>>>>>>>>>>>>> \t get_slice_timeslot timeslot_elems %s"%(timeslot_elems)
-
- for timeslot_elem in timeslot_elems:
- timeslot = Timeslot(timeslot_elem.attrib, timeslot_elem)
- print>>sys.stderr, "\r\n \r\n \t\t \t SLABV1TIMESLOT.pY >>>>>>>>>>>>>>>>>>>>>>>>>>>>> \t get_slice_timeslot timeslot %s"%(timeslot)
-
- return timeslot
\ No newline at end of file
from sfa.rspecs.elements.versions.slabv1Lease import Slabv1Lease
from sfa.rspecs.elements.versions.slabv1Node import Slabv1Node
from sfa.rspecs.elements.versions.slabv1Sliver import Slabv1Sliver
-from sfa.rspecs.elements.versions.slabv1Timeslot import Slabv1Timeslot
+
from sfa.rspecs.elements.versions.sfav1Lease import SFAv1Lease