projects
/
perl-cwmp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r222@brr: dpavlin | 2007-11-15 00:01:24 +0100
[perl-cwmp.git]
/
bin
/
acs.pl
diff --git
a/bin/acs.pl
b/bin/acs.pl
index
c472fd6
..
3675088
100755
(executable)
--- a/
bin/acs.pl
+++ b/
bin/acs.pl
@@
-8,34
+8,39
@@
use strict;
use lib './lib';
use CWMP::Server;
use lib './lib';
use CWMP::Server;
+use CWMP::Session;
+use CWMP::Vendor;
use Getopt::Long;
use Getopt::Long;
+use Data::Dump qw/dump/;
my $port = 3333;
my $debug = 0;
my $store_path = './';
my $store_plugin = 'YAML';
my $port = 3333;
my $debug = 0;
my $store_path = './';
my $store_plugin = 'YAML';
+my $create_dump = 1;
GetOptions(
'debug+' => \$debug,
'port=i' => \$port,
'store-path=s' => \$store_path,
'store-plugin=s' => \$store_plugin,
GetOptions(
'debug+' => \$debug,
'port=i' => \$port,
'store-path=s' => \$store_path,
'store-plugin=s' => \$store_plugin,
+ 'create_dump!' => \$create_dump,
);
my $server = CWMP::Server->new({
port => $port,
);
my $server = CWMP::Server->new({
port => $port,
- store => {
- module => $store_plugin,
- path => $store_path,
- debug => $debug,
+ session => {
+ store => {
+ module => $store_plugin,
+ path => $store_path,
+ debug => $debug,
+ },
+ create_dump => $create_dump,
},
debug => $debug,
},
debug => $debug,
- default_queue => [
- 'GetRPCMethods',
- [ 'GetParameterNames', 'InternetGatewayDevice.DeviceInfo.SerialNumber', 0 ],
- [ 'GetParameterValues', 'InternetGatewayDevice.DeviceInfo.SerialNumber', 1 ],
-# 'Reboot',
- ],
});
});
+
+CWMP::Vendor->add_triggers;
+
$server->run();
$server->run();