Changeset 7
- Timestamp:
- Jan 14, 2008, 5:22:36 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/klask
r6 r7 14 14 15 15 our $KLASK_DB = '/var/cache/klask/klaskdb'; 16 our $KLASK_SW = '/var/cache/klask/switchdb'; 16 17 our $KLASK_CFG = '/etc/klask.conf'; 17 18 … … 916 917 }; 917 918 918 YAML::DumpFile(" /var/cache/klask/switchdb", $switch_connection);919 YAML::DumpFile("$KLASK_SW", $switch_connection); 919 920 } 920 921 … … 941 942 sub cmd_exportsw_txt { 942 943 943 my $switch_connection = YAML::LoadFile(" /var/cache/klask/switchdb");944 my $switch_connection = YAML::LoadFile("$KLASK_SW"); 944 945 945 946 my %db_switch_output_port = %{$switch_connection->{output_port}}; … … 976 977 sub cmd_exportsw_dot { 977 978 978 my $switch_connection = YAML::LoadFile(" /var/cache/klask/switchdb");979 my $switch_connection = YAML::LoadFile("$KLASK_SW"); 979 980 980 981 my %db_switch_output_port = %{$switch_connection->{output_port}}; … … 1186 1187 /etc/klask.conf 1187 1188 /var/cache/klask/klaskdb 1188 1189 /var/cache/klask/switchdb 1189 1190 1190 1191 =head1 SEE ALSO
Note: See TracChangeset
for help on using the changeset viewer.