Allow wildcard logical names in COPY column

This commit is contained in:
Tom Eastep 2009-11-11 10:17:53 -08:00
parent 6987cd15c5
commit 06d3b2c692

View File

@ -175,6 +175,10 @@ sub copy_and_edit_table( $$$$ ) {
# Map physical names to logical names in $copy # Map physical names to logical names in $copy
# #
$copy = join( '|' , map( physical_name($_) , split( ',' , $copy ) ) ); $copy = join( '|' , map( physical_name($_) , split( ',' , $copy ) ) );
#
# Shell and iptables use a different wildcard character
#
$copy =~ s/\+/*/;
if ( $realm ) { if ( $realm ) {
emit ( "\$IP -$family route show table $duplicate | sed -r 's/ realm [[:alnum:]_]+//' | while read net route; do" ) emit ( "\$IP -$family route show table $duplicate | sed -r 's/ realm [[:alnum:]_]+//' | while read net route; do" )