Changeset 8270 in genesis for nodes/genesis-to-yaml.pl
- Timestamp:
- Aug 8, 2010, 7:38:01 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
nodes/genesis-to-yaml.pl
r8266 r8270 8 8 Geo::Coordinates::RDNAP->import(qw/from_rd to_rd dms/); 9 9 } else { 10 print STDERR "[WARN] Geo::Coordinates::RDNAP not installed\n";11 10 sub from_rd { 12 11 return (0,0,0); … … 72 71 foreach $if (keys %config) { 73 72 ($iflabel, $alias) = split(':',$if); 74 $iflabel .= "_alias${alias}" if ($alias );73 $iflabel .= "_alias${alias}" if ($alias =~ m/[0-9]/); 75 74 76 75 print <<EOF; … … 78 77 EOF 79 78 %tmp = ( 80 'configtype' => 'interface',81 79 'dhcp' => 'False', 82 80 'compass_direction' => 'None', 83 'nodename' => $nodename,84 81 'interface' => $if, 85 82 ); … … 138 135 139 136 foreach $key (sort keys %tmp) { 140 printf " %-11s: $tmp{$key}\n", $key;137 printf " %-11s: '$tmp{$key}'\n", $key; 141 138 } 142 139 print "\n";
Note:
See TracChangeset
for help on using the changeset viewer.