projects
/
perl-cwmp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use new CWMP::Parser
[perl-cwmp.git]
/
lib
/
CWMP
/
Session.pm
diff --git
a/lib/CWMP/Session.pm
b/lib/CWMP/Session.pm
index
bdde16c
..
8a47f00
100644
(file)
--- a/
lib/CWMP/Session.pm
+++ b/
lib/CWMP/Session.pm
@@
-18,7
+18,7
@@
store
use Data::Dump qw/dump/;
use Carp qw/carp confess cluck croak/;
use Data::Dump qw/dump/;
use Carp qw/carp confess cluck croak/;
-use CWMP::
Request
;
+use CWMP::
Parser
;
use CWMP::Methods;
use CWMP::Store;
use CWMP::Methods;
use CWMP::Store;
@@
-88,16
+88,16
@@
sub process_request {
warn "## request payload: ",length($xml)," bytes\n$xml\n" if $self->debug;
warn "## request payload: ",length($xml)," bytes\n$xml\n" if $self->debug;
- $state = CWMP::
Request
->parse( $xml );
+ $state = CWMP::
Parser
->parse( $xml );
warn "## acquired state = ", dump( $state ), "\n" if $self->debug;
warn "## acquired state = ", dump( $state ), "\n" if $self->debug;
- if ( ! defined( $state->{DeviceI
D
} ) ) {
+ if ( ! defined( $state->{DeviceI
d
} ) ) {
if ( $self->state ) {
if ( $self->state ) {
- warn "## state without DeviceI
D
, using old one...\n";
- $state->{DeviceI
D} = $self->state->{DeviceID
};
+ warn "## state without DeviceI
d
, using old one...\n";
+ $state->{DeviceI
d} = $self->state->{DeviceId
};
} else {
} else {
- warn "WARNING: state without DeviceI
D
, and I don't have old one!\n";
+ warn "WARNING: state without DeviceI
d
, and I don't have old one!\n";
warn "## state = ",dump( $state );
}
}
warn "## state = ",dump( $state );
}
}