diff options
| author | Erich J. Hauptli <ejhauptl@us.ibm.com> | 2015-05-08 15:23:26 -0500 |
|---|---|---|
| committer | Erich J. Hauptli <ejhauptl@us.ibm.com> | 2015-05-08 15:23:26 -0500 |
| commit | b6474819f02e6752f671846b68a8b85f62c8e677 (patch) | |
| tree | 94389e1aac2aa26dbbb2e6af85fd853dd2c4f39c /scripts | |
| parent | 2ec0af1b858cff739688ae6a13cd70b4dc1a54b4 (diff) | |
| download | serverwiz-b6474819f02e6752f671846b68a8b85f62c8e677.tar.gz serverwiz-b6474819f02e6752f671846b68a8b85f62c8e677.zip | |
Fixed ProcessXbus, so it generates PEER Attributes.
Diffstat (limited to 'scripts')
| -rwxr-xr-x[-rw-r--r--] | scripts/processMrw.pl | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/scripts/processMrw.pl b/scripts/processMrw.pl index 95a7ec2..c735e97 100644..100755 --- a/scripts/processMrw.pl +++ b/scripts/processMrw.pl @@ -656,7 +656,24 @@ sub processXbus my $targetObj = shift; my $target = shift; - # $targetObj->setAttribute($target, "PEER_TARGET",""); + my $found_xbus = 0; + + my $xbus_child_conn = $targetObj->getFirstConnectionDestination($target); + if ($xbus_child_conn ne "") + { + ## set attributes for both directions + $targetObj->setAttribute($xbus_child_conn, "PEER_TARGET", + $targetObj->getAttribute($target, "PHYS_PATH")); + $targetObj->setAttribute($target, "PEER_TARGET", + $targetObj->getAttribute($xbus_child_conn, "PHYS_PATH")); + + $targetObj->setAttribute($xbus_child_conn, "PEER_TARGET", + $targetObj->getAttribute($target, "PHYS_PATH")); + $targetObj->setAttribute($target, "PEER_TARGET", + $targetObj->getAttribute($xbus_child_conn, "PHYS_PATH")); + + $found_xbus = 1; + } } @@ -1276,8 +1293,7 @@ sub errorCheck } else { - $abus_error = sprintf( -"proc not connected to proc via Abus or Xbus (Target=%s)",$child); + $abus_error = sprintf("proc not connected to proc via Abus or Xbus (Target=%s)",$child); } } } |

