[Spacewalk-list] Error with configuration macros on vlan interfaces

Tomas Lestach tlestach at redhat.com
Mon Aug 13 14:16:09 UTC 2012


On Wednesday 08 of August 2012 15:51:34 Patrick Hurrelmann wrote:
> Hi all,
> 
> I'm trying to create some configuration files, that use the ip_address
> and netmask macro. But as this is on vlan interfaces the interface name
> is "bond0.100". But using the interface name "bond0.100" in the macros
> the web ui yields the following errors:
> 
> Invalid arguments 'bond0.100' to macro function
> 'rhn.system.net_interface.ip_address'
> Invalid arguments 'bond0.100' to macro function
> 'rhn.system.net_interface.netmask
> 
> The config used is:
> 
> IPADDR={|rhn.system.net_interface.ip_address(bond0.100)|}
> NETMASK={|rhn.system.net_interface.netmask(bond0.100)|}
> 
> How to use these 2 macros with vlan interfaces that have a dot in their
> name?
> 

Append into your /etc/rhn/rhn.conf file following line:

config_macro_argument_regex = [-\\w\\s:\\.]*

and restart spacewalk services.


Regards,
-- 
Tomas Lestach
RHN Satellite Engineering


> Thanks and regards
> Patrick




More information about the Spacewalk-list mailing list