]> AND Public Git Repository - simgrid.git/blobdiff - src/surf/sg_platf.cpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' into rework-energy-plugin-2.0
[simgrid.git] / src / surf / sg_platf.cpp
index 67a353805d768bb096c3b56ba4236ab741c12095..93fb9329162ada0947990ba24b7ecec4f6be8f93 100644 (file)
@@ -642,6 +642,14 @@ simgrid::kernel::routing::NetZoneImpl* sg_platf_new_Zone_begin(simgrid::kernel::
   return new_zone;
 }
 
+void sg_platf_new_Zone_set_properties(std::unordered_map<std::string, std::string>* props)
+{
+  xbt_assert(current_routing, "Cannot set properties of the current Zone: none under construction");
+
+  for (auto kv = props->begin(); kv != props->end(); ++kv)
+    current_routing->get_iface()->set_property(kv->first, kv->second);
+}
+
 /**
  * @brief Specify that the description of the current AS is finished
  *