[netcf-devel] mac-tag in XML

Jonas Eriksson jonas.j.eriksson at ericsson.com
Wed Jul 29 07:39:20 UTC 2009


Hi,

Is the <mac> tag in XML to be used to search for interfaces or to
set the mac address of that interface that contains the mac tag?
As this is converted to HWADDR and, according to the info that I
have found, I have asumed that this is for searching for the
correct interface.

This proved a bit difficult on SuSE, as the connection device
name <-> mac address is handled strictly by persistent udev-rules
written when an interface is first found. I solved this by
implementing the following prio logic:

1. xmlif.name == hostif.name && xmlif.macaddr == hostif.macaddr
2. xmlif.macaddr == hostif.macaddr
3. xmlif.name == hostif.name

This may lead to interface name changing when doing a
define/dumpxml-cycle given that an interface with the wrong name
but correct mac address is found. Is this the intended way of
netcf's mac address handling?

If this assumption is correct, why cannot the interface-tag
inside the vlan-tag in netcf-xml contain a mac-tag? If this is
wrong, i hope that we can mitigate this even though the xml
schema is considered stable.

/Jonas

--
Jonas Eriksson
Consultant at AS/EAB/FLJ/IL
Phone: +46 8 58086281
Combitech AB
Älvsjö, Sweden


More information about the netcf-devel mailing list