Use name from topology in container name

This commit is contained in:
Théophile Bastian 2022-03-08 15:21:14 +01:00
parent 21afacc96c
commit 9a5b6a996d

View file

@ -215,7 +215,8 @@ class YamlTopology(Topology):
) )
cur_link = network.Network( cur_link = network.Network(
self.conn, enable_v4=link_conf.get("enable_v4", True), self.conn,
enable_v4=link_conf.get("enable_v4", True),
) )
self.links.append(cur_link) self.links.append(cur_link)
@ -246,6 +247,7 @@ class YamlTopology(Topology):
self.conn, self.conn,
dom_descr[dom]["links"], dom_descr[dom]["links"],
enable_v4=dom_descr[dom].get("enable_v4", True), enable_v4=dom_descr[dom].get("enable_v4", True),
name=dom,
) )
for dom in sorted_dom_names for dom in sorted_dom_names
] ]