$q->enqueue( 'GetParameterValues', [
'InternetGatewayDevice.',
]);
+
+ $q->enqueue( 'GetParameterAttributes', [
+ 'InternetGatewayDevice.DeviceInfo.SerialNumber',
+ ]);
+
+# $q->enqueue( 'SetParameterAttributes', [ '
}
}
my $self = shift;
my $state = shift;
my @ParameterNames = _array_param(shift);
- confess "GetParameterValues need ParameterNames" unless @ParameterNames;
warn "# GetParameterValues", dump( @ParameterNames ), "\n" if $self->debug;
$self->xml( $state, sub {
});
}
+=head2 GetParameterAttributes
+
+ $method->GetParameterAttributes( $state, [ $ParametarNames, ... ] );
+
+=cut
+
+sub GetParameterAttributes {
+ my ( $self, $state, $param ) = @_;
+ my @ParameterNames = _array_param($param);
+
+ warn "# GetParameterAttributes", dump( @ParameterNames ), "\n" if $self->debug;
+
+ $self->xml( $state, sub {
+ my ( $X, $state ) = @_;
+
+ $X->GetParameterAttributes( $cwmp,
+ $X->ParameterNames( $cwmp,
+ map {
+ $X->string( $xsd, $_ )
+ } @ParameterNames
+ )
+ );
+ });
+}
+
=head2 Reboot
$method->Reboot( $state );
my $debug = shift @ARGV;
-use Test::More tests => 16;
+use Test::More tests => 18;
use Data::Dump qw/dump/;
use Cwd qw/abs_path/;
use File::Slurp;
'InternetGatewayDevice.DeviceInfo.SerialNumber',
'InternetGatewayDevice.DeviceInfo.VendorConfigFile.',
]);
+check_method( 'GetParameterAttributes', [
+ 'InternetGatewayDevice.DeviceInfo.SerialNumber'
+]);
--- /dev/null
+<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
+ xmlns:cwmp="urn:dslforum-org:cwmp-1-0"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema-instance"
+ soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
+ <soap:Header>
+ <cwmp:ID mustUnderstand="1">42</cwmp:ID>
+ <cwmp:NoMoreRequests>0</cwmp:NoMoreRequests>
+ </soap:Header>
+ <soap:Body>
+ <cwmp:GetParameterAttributes>
+ <cwmp:ParameterNames>
+ <xsd:string>InternetGatewayDevice.DeviceInfo.SerialNumber</xsd:string>
+ </cwmp:ParameterNames>
+ </cwmp:GetParameterAttributes>
+ </soap:Body>
+</soap:Envelope>
\ No newline at end of file