<div>Greetings,</div><div><br></div><div>I'd like to to be able to parse an ifcfg file that contains a function using shellvars.aug. This doesn't seem to be supported currently. </div><div><br></div><div>Here's an example of the ifcfg file:</div>

<div><br></div><div>================ begin ifcfg-eth0 =================</div><div># VMware VMXNET3 Ethernet Controller</div><div>DEVICE=eth0</div><div>BOOTPROTO=static</div><div>ONBOOT=yes</div><div>IPADDR=192.168.10.91</div>

<div>NETMASK=255.255.255.0</div><div><br></div><div>check_link_down() {</div><div> return 1;</div><div>}</div><div>================ end ifcfg-eth0 =================</div><div><br></div><div>I took a stab at patching shellvars.aug, but I'm stuck with the following error...</div>

<div><br></div><div><div><div>[root@s-rhel-server-54-64 dist]# augtool ls /files/etc/sysconfig/network-scripts/ifcfg-eth0</div><div>#comment = VMware VMXNET3 Ethernet Controller</div><div>DEVICE = eth0</div><div>BOOTPROTO = static</div>

<div>ONBOOT = yes</div><div>IPADDR = 192.168.10.91</div><div>NETMASK = 255.255.255.0</div><div>error: Invalid path expression</div><div>error: garbage at end of path expression</div><div>error: /files/etc/sysconfig/network-scripts/ifcfg-eth0/check_link_down(|=|)/*</div>

<div>error: Invalid path expression</div><div>error: garbage at end of path expression</div><div>error: /files/etc/sysconfig/network-scripts/ifcfg-eth0/check_link_down(|=|)</div><div>check_link_down()/ = 255.255.255.0</div>

</div></div><div><br></div><div>If anyone has advice on the error or would be willing to open a ticket on the bug/feature, I would appreciate it.</div><div><br></div><div>Thanks very much.</div><div><br></div><div> - Chris<br>

</div>