From bb067f529bf5634104d59039a86997d84d6f9bf9 Mon Sep 17 00:00:00 2001 From: Stefan Kalkowski Date: Wed, 2 Nov 2022 10:35:04 +0100 Subject: [PATCH] sculpt_manager: relax nic_drv policy label When using the newer genode_c_api uplink library, an uplink connection uses the device name as label, which enables integrators to use different policies resp. routes for different devices driven by one driver. The nic_drv policy of the nic_roouter configuration generated by the sculpt_manager however uses an empty label like: "nic_drv -> ". This is the way how existent NIC drivers, like ipxe_nic_drv requested their uplink session. To support both driver variants this commit relaxes the policy by checking for a prefix only. Ref genodelabs/genode#4660 --- repos/gems/src/app/sculpt_manager/network.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repos/gems/src/app/sculpt_manager/network.cc b/repos/gems/src/app/sculpt_manager/network.cc index b386fad5a9..212b05eab5 100644 --- a/repos/gems/src/app/sculpt_manager/network.cc +++ b/repos/gems/src/app/sculpt_manager/network.cc @@ -19,7 +19,7 @@ void Sculpt::Network::_generate_nic_router_uplink(Xml_generator &xml, char const *label) { xml.node("policy", [&] () { - xml.attribute("label", label); + xml.attribute("label_prefix", label); xml.attribute("domain", "uplink"); }); gen_named_node(xml, "domain", "uplink", [&] () {