X-Git-Url: http://git.rot13.org/?p=perl-cwmp.git;a=blobdiff_plain;f=lib%2FCWMP%2FSession.pm;h=8a47f00fc7fa8a42af6a27f964dea10f07093466;hp=bdde16c6a743d4fa662679ca4d920667a4547f45;hb=a2544f1449c8b1f24a1f7ff0f8bcd79ab0eac977;hpb=5a4b3552e45171d6b5bbb478e06c107a2e9506ce diff --git a/lib/CWMP/Session.pm b/lib/CWMP/Session.pm index bdde16c..8a47f00 100644 --- 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 CWMP::Request; +use CWMP::Parser; 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; - $state = CWMP::Request->parse( $xml ); + $state = CWMP::Parser->parse( $xml ); warn "## acquired state = ", dump( $state ), "\n" if $self->debug; - if ( ! defined( $state->{DeviceID} ) ) { + if ( ! defined( $state->{DeviceId} ) ) { if ( $self->state ) { - warn "## state without DeviceID, using old one...\n"; - $state->{DeviceID} = $self->state->{DeviceID}; + warn "## state without DeviceId, using old one...\n"; + $state->{DeviceId} = $self->state->{DeviceId}; } else { - warn "WARNING: state without DeviceID, and I don't have old one!\n"; + warn "WARNING: state without DeviceId, and I don't have old one!\n"; warn "## state = ",dump( $state ); } }