From 378c16257860a556e1e0b0c3130f8e1678c7888e Mon Sep 17 00:00:00 2001 From: daniceexi Date: Tue, 23 Dec 2014 10:12:54 -0500 Subject: [PATCH] check stanby fsp ip --- xCAT-server/lib/xcat/plugins/energy.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/energy.pm b/xCAT-server/lib/xcat/plugins/energy.pm index 0cd4be70f..c3bc0d065 100644 --- a/xCAT-server/lib/xcat/plugins/energy.pm +++ b/xCAT-server/lib/xcat/plugins/energy.pm @@ -486,6 +486,11 @@ sub run_cim return 1; } } + # check whether the primary ip of fsp is the IP we are accessing + if (defined ($value->[0]->{property}->{PrimaryFSP_IP}->{value}) && $value->[0]->{property}->{PrimaryFSP_IP}->{value} ne $http_params->{ip}) { + # run against the standby fsp, do the next one + return 11; + } # ======start to handle the query and setting======