-----Original Message----- From: Ryan McCain [mailto:Ryan.McCain@dss.state.la.us] Sent: Wednesday, February 06, 2008 12:57 PM To: opensuse-autoinstall@opensuse.org Subject: RE: [opensuse-autoinstall] Trying to set NTP w/ <ask> onSLES10 SP1 (64bit)
So, with this xml file. If I wanted to assign an IP address it would be 'networking,interfaces,2,ipaddr'?
<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