<networking>
<snipped stuff that's not really important to this>
<interfaces config:type="list"> <interface> <bootproto>static</bootproto> <device>eth-id-00:1c:23:cb:7e:aa</device> <ipaddr>10.120.160.231</ipaddr> <netmask>255.255.254.0</netmask> <startmode>auto</startmode> <usercontrol>no</usercontrol> </interface> </interfaces>
It would be <path>networking,interfaces,0,ipaddr</path>
Translated into words, more or less, it would read as: - First find the networking element - then, find the child element of <networking> that's called "interfaces" - then, find the very first child element of <interfaces> - from there, find the child element called "ipaddr", and since it's the last element in the list, operate on it.
If the path were "networking,interfaces,2,ipaddr", the result would be this: <networking> <interfaces config:type="list"> <interface> <bootproto>static</bootproto> <device>eth-id-00:1c:23:cb:7e:aa</device> <ipaddr>10.120.160.231</ipaddr> <netmask>255.255.254.0</netmask> <startmode>auto</startmode> <usercontrol>no</usercontrol> </interface> <interface> <bootproto>static</bootproto> <device>eth-id-00:1c:23:cb:7e:ab</device> <ipaddr>10.120.161.231</ipaddr> <netmask>255.255.254.0</netmask> <startmode>auto</startmode> <usercontrol>no</usercontrol> </interface> <interface> <bootproto>static</bootproto> <device>eth-id-00:1c:23:cb:7e:ac</device> <ipaddr>OPERATING ON THIS ELEMENT BECAUSE THIS INTERFACE HAS INDEX "2"</ipaddr> <netmask>255.255.254.0</netmask> <startmode>auto</startmode> <usercontrol>no</usercontrol> </interface> </interfaces> -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
Ohhhh. I follow you now. I will try this out tomorrow. I have meetings the rest of the day. Thanks for clarifying. -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org