5 |
|
|
6 |
use Data::Dump qw/dump/; |
use Data::Dump qw/dump/; |
7 |
|
|
8 |
|
our $debug = 0; |
9 |
|
|
10 |
=for reference |
=for reference |
11 |
|
|
12 |
dpavlin@t61p:~/Desktop/docs/amt/AMT-5.1-SDK/Linux/Intel_AMT/Samples/Soap/NetworkAdministration/c++$ grep FunctionCall * |
dpavlin@t61p:~/Desktop/docs/amt/AMT-5.1-SDK/Linux/Intel_AMT/Samples/Soap/NetworkAdministration/c++$ grep FunctionCall * |
67 |
ping => $soap->GetPingResponse->paramsout, |
ping => $soap->GetPingResponse->paramsout, |
68 |
}; |
}; |
69 |
|
|
70 |
warn "# network_settings ",dump( $info ); |
warn "# network_settings ",dump( $info ) if $debug; |
71 |
|
|
72 |
foreach my $if ( @{ $info->{interfaces} } ) { |
foreach my $if ( @{ $info->{interfaces} } ) { |
73 |
my $detail = $soap->GetInterfaceSettings( SOAP::Data->name('InterfaceHandle'=>$if) )->paramsout; |
my $detail = $soap->GetInterfaceSettings( SOAP::Data->name('InterfaceHandle'=>$if) )->paramsout; |
74 |
warn "## $if ",dump( $detail ); |
warn "## $if ",dump( $detail ) if $debug; |
75 |
foreach my $param ( keys %{ $detail->{IPv4Parameters} } ) { |
foreach my $param ( keys %{ $detail->{IPv4Parameters} } ) { |
76 |
if ( my $ip = $detail->{IPv4Parameters}->{$param} ) { |
if ( my $ip = $detail->{IPv4Parameters}->{$param} ) { |
77 |
$detail->{IPv4Parameters}->{$param} = ipv4( $ip ); |
$detail->{IPv4Parameters}->{$param} = ipv4( $ip ); |