Changeset 8270 in genesis for nodes/genesis-to-yaml.pl


Ignore:
Timestamp:
Aug 8, 2010, 7:38:01 PM (14 years ago)
Author:
rick
Message:
  • Useless entries deleted
File:
1 edited

Legend:

Unmodified
Added
Removed
  • nodes/genesis-to-yaml.pl

    r8266 r8270  
    88  Geo::Coordinates::RDNAP->import(qw/from_rd to_rd dms/);
    99} else {
    10   print STDERR "[WARN] Geo::Coordinates::RDNAP not installed\n";
    1110  sub from_rd {
    1211    return (0,0,0);
     
    7271foreach $if (keys %config) {
    7372    ($iflabel, $alias) = split(':',$if);
    74     $iflabel .= "_alias${alias}" if ($alias);
     73    $iflabel .= "_alias${alias}" if ($alias =~ m/[0-9]/);
    7574   
    7675    print <<EOF;
     
    7877EOF
    7978    %tmp = (
    80         'configtype' => 'interface',
    8179        'dhcp' => 'False',
    8280        'compass_direction' => 'None',
    83         'nodename' => $nodename,
    8481        'interface' => $if,
    8582        );
     
    138135
    139136    foreach $key (sort keys %tmp) {
    140         printf "  %-11s: $tmp{$key}\n", $key;
     137        printf "  %-11s: '$tmp{$key}'\n", $key;
    141138    }
    142139    print "\n";
Note: See TracChangeset for help on using the changeset viewer.