diff options
| author | Erich Hauptli <ejhauptl@us.ibm.com> | 2015-05-08 15:29:18 -0500 |
|---|---|---|
| committer | Erich Hauptli <ejhauptl@us.ibm.com> | 2015-05-08 15:29:18 -0500 |
| commit | d2055857674b29b26171836d32cfd48ce5991996 (patch) | |
| tree | cff30ffea6aaf077a0d0d332f8cb85d76f9c0070 | |
| parent | 8aa5027e301d21e4ab110dd934bb46f4d8940960 (diff) | |
| parent | b6474819f02e6752f671846b68a8b85f62c8e677 (diff) | |
| download | serverwiz-d2055857674b29b26171836d32cfd48ce5991996.tar.gz serverwiz-d2055857674b29b26171836d32cfd48ce5991996.zip | |
Merge pull request #9 from Erich-Hauptli/master
Fixed ProcessXbus, so it generates PEER Attributes.
| -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); } } } |

