Changeset 7


Ignore:
Timestamp:
Jan 14, 2008, 5:22:36 PM (17 years ago)
Author:
g7moreau
Message:
  • Add SWITCH_DB global parameter
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/klask

    r6 r7  
    1414
    1515our $KLASK_DB  = '/var/cache/klask/klaskdb';
     16our $KLASK_SW  = '/var/cache/klask/switchdb';
    1617our $KLASK_CFG = '/etc/klask.conf';
    1718
     
    916917      };
    917918     
    918    YAML::DumpFile("/var/cache/klask/switchdb", $switch_connection);
     919   YAML::DumpFile("$KLASK_SW", $switch_connection);
    919920   }
    920921
     
    941942sub cmd_exportsw_txt {
    942943
    943    my $switch_connection = YAML::LoadFile("/var/cache/klask/switchdb");
     944   my $switch_connection = YAML::LoadFile("$KLASK_SW");
    944945
    945946   my %db_switch_output_port       = %{$switch_connection->{output_port}};
     
    976977sub cmd_exportsw_dot {
    977978
    978    my $switch_connection = YAML::LoadFile("/var/cache/klask/switchdb");
     979   my $switch_connection = YAML::LoadFile("$KLASK_SW");
    979980   
    980981   my %db_switch_output_port       = %{$switch_connection->{output_port}};
     
    11861187 /etc/klask.conf
    11871188 /var/cache/klask/klaskdb
    1188 
     1189 /var/cache/klask/switchdb
    11891190
    11901191=head1 SEE ALSO
Note: See TracChangeset for help on using the changeset viewer.