From: Thierry Parmentelat Date: Fri, 25 Mar 2011 15:59:19 +0000 (+0100) Subject: use AMs in aggregates.xml by default, stack sfamesh to get SMs X-Git-Tag: tests-5.0-27~4 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=e1017dcc4a40693ce18e25f389f300e9ecde2572;p=tests.git use AMs in aggregates.xml by default, stack sfamesh to get SMs --- diff --git a/system/TestPlc.py b/system/TestPlc.py index 903ddaf..616afe7 100644 --- a/system/TestPlc.py +++ b/system/TestPlc.py @@ -1206,8 +1206,9 @@ class TestPlc: return True def aggregate_xml_line(self): - return '' % \ - (self.vserverip,self.plc_spec['sfa']['SFA_REGISTRY_ROOT_AUTH']) + port=self.plc_spec['sfa']['neighbours-port'] + return '' % \ + (self.vserverip,self.plc_spec['sfa']['SFA_REGISTRY_ROOT_AUTH'],port) def registry_xml_line(self): return '' % \ diff --git a/system/config_default.py b/system/config_default.py index 47b0308..d58fdb9 100644 --- a/system/config_default.py +++ b/system/config_default.py @@ -317,6 +317,9 @@ def sfa (options,index) : 'regularuser':regularuser, 'slicename' : slicename, 'domain':domain, + # the default is to use AMs in the various aggregates.xml + # stack config_sfamesh to point to SMs instead + 'neighbours-port':12346, } def sfa_slice_specs (options,index,slicename,regularuser): diff --git a/system/config_sfamesh.py b/system/config_sfamesh.py new file mode 100644 index 0000000..563932b --- /dev/null +++ b/system/config_sfamesh.py @@ -0,0 +1,5 @@ +# tweak the config so that aggregates.xml point to slice managers instead of AMs +def config (plc_specs, options): + for plc_spec in plc_specs: + plc_spec['sfa']['neighbours-port']=12347 + return plc_specs