From 7d2c904eb8a2571b78b0682a9f7bbaedfbff01f2 Mon Sep 17 00:00:00 2001 From: wanghuaz Date: Wed, 31 Mar 2010 10:48:58 +0000 Subject: [PATCH] fixed one issue on AIX that didn't handle the output well from ASMI git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5625 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/PPCfsp.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/perl-xCAT/xCAT/PPCfsp.pm b/perl-xCAT/xCAT/PPCfsp.pm index 446f4d106..2db7d820b 100644 --- a/perl-xCAT/xCAT/PPCfsp.pm +++ b/perl-xCAT/xCAT/PPCfsp.pm @@ -1815,13 +1815,14 @@ sub set_netcfg #last HTML::Form. So let's take a guess of the type value #Not sure if it can work for all AIX version { + my @types = $interfaces->{ $real_inc_name}->{'type'}->possible_values(); if ( $inc_type eq 'Dynamic') { - $interfaces->{ $real_inc_name}->{'type'}->value(1); + $interfaces->{ $real_inc_name}->{'type'}->value(@types[0]); } else { - $interfaces->{ $real_inc_name}->{'type'}->value(0); + $interfaces->{ $real_inc_name}->{'type'}->value(@types[1]); } } #not work on AIX