/[cwmp]/google/trunk/bin/acs.pl
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /google/trunk/bin/acs.pl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 203 - (show annotations)
Wed Nov 14 21:55:24 2007 UTC (16 years, 7 months ago) by dpavlin
File MIME type: text/plain
File size: 640 byte(s)
 r218@brr:  dpavlin | 2007-11-14 22:54:48 +0100
 version bump [0.10]
 - added CWMP::Vendor module which implements simple vendor specific logic
   (this is beginning of example to change IP adress of CPE based on serial)

1 #!/usr/bin/perl -w
2
3 # acs.pl
4 #
5 # 06/18/07 09:19:54 CEST Dobrica Pavlinusic <dpavlin@rot13.org>
6
7 use strict;
8
9 use lib './lib';
10 use CWMP::Server;
11 use CWMP::Session;
12 use CWMP::Vendor;
13 use Getopt::Long;
14 use Data::Dump qw/dump/;
15
16 my $port = 3333;
17 my $debug = 0;
18 my $store_path = './';
19 my $store_plugin = 'YAML';
20
21 GetOptions(
22 'debug+' => \$debug,
23 'port=i' => \$port,
24 'store-path=s' => \$store_path,
25 'store-plugin=s' => \$store_plugin,
26 );
27
28 my $server = CWMP::Server->new({
29 port => $port,
30 store => {
31 module => $store_plugin,
32 path => $store_path,
33 debug => $debug,
34 },
35 debug => $debug,
36 });
37
38 CWMP::Vendor->add_triggers;
39
40 $server->run();
41

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26