|
@@ 104-106 (lines=3) @@
|
| 101 |
|
$group = trim($arrname[1]); |
| 102 |
|
} |
| 103 |
|
$this->_result['devices'][$group]['name'] = $arrname[1]; |
| 104 |
|
if (preg_match('/^size\s*:\s*(.*)/m', $block, $size)) { |
| 105 |
|
$this->_result['devices'][$group]['size'] = trim($size[1]); |
| 106 |
|
} |
| 107 |
|
if (preg_match('/^stride\s*:\s*(.*)/m', $block, $stride)) { |
| 108 |
|
$this->_result['devices'][$group]['stride'] = trim($stride[1]); |
| 109 |
|
} |
|
@@ 107-109 (lines=3) @@
|
| 104 |
|
if (preg_match('/^size\s*:\s*(.*)/m', $block, $size)) { |
| 105 |
|
$this->_result['devices'][$group]['size'] = trim($size[1]); |
| 106 |
|
} |
| 107 |
|
if (preg_match('/^stride\s*:\s*(.*)/m', $block, $stride)) { |
| 108 |
|
$this->_result['devices'][$group]['stride'] = trim($stride[1]); |
| 109 |
|
} |
| 110 |
|
if (preg_match('/^type\s*:\s*(.*)/m', $block, $type)) { |
| 111 |
|
$this->_result['devices'][$group]['type'] = trim($type[1]); |
| 112 |
|
} |
|
@@ 110-112 (lines=3) @@
|
| 107 |
|
if (preg_match('/^stride\s*:\s*(.*)/m', $block, $stride)) { |
| 108 |
|
$this->_result['devices'][$group]['stride'] = trim($stride[1]); |
| 109 |
|
} |
| 110 |
|
if (preg_match('/^type\s*:\s*(.*)/m', $block, $type)) { |
| 111 |
|
$this->_result['devices'][$group]['type'] = trim($type[1]); |
| 112 |
|
} |
| 113 |
|
if (preg_match('/^status\s*:\s*(.*)/m', $block, $status)) { |
| 114 |
|
$this->_result['devices'][$group]['status'] = trim($status[1]); |
| 115 |
|
} |
|
@@ 113-115 (lines=3) @@
|
| 110 |
|
if (preg_match('/^type\s*:\s*(.*)/m', $block, $type)) { |
| 111 |
|
$this->_result['devices'][$group]['type'] = trim($type[1]); |
| 112 |
|
} |
| 113 |
|
if (preg_match('/^status\s*:\s*(.*)/m', $block, $status)) { |
| 114 |
|
$this->_result['devices'][$group]['status'] = trim($status[1]); |
| 115 |
|
} |
| 116 |
|
if (preg_match('/^subsets\s*:\s*(.*)/m', $block, $subsets)) { |
| 117 |
|
$this->_result['devices'][$group]['subsets'] = trim($subsets[1]); |
| 118 |
|
} |
|
@@ 116-118 (lines=3) @@
|
| 113 |
|
if (preg_match('/^status\s*:\s*(.*)/m', $block, $status)) { |
| 114 |
|
$this->_result['devices'][$group]['status'] = trim($status[1]); |
| 115 |
|
} |
| 116 |
|
if (preg_match('/^subsets\s*:\s*(.*)/m', $block, $subsets)) { |
| 117 |
|
$this->_result['devices'][$group]['subsets'] = trim($subsets[1]); |
| 118 |
|
} |
| 119 |
|
if (preg_match('/^devs\s*:\s*(.*)/m', $block, $devs)) { |
| 120 |
|
$this->_result['devices'][$group]['devs'] = trim($devs[1]); |
| 121 |
|
} |
|
@@ 119-121 (lines=3) @@
|
| 116 |
|
if (preg_match('/^subsets\s*:\s*(.*)/m', $block, $subsets)) { |
| 117 |
|
$this->_result['devices'][$group]['subsets'] = trim($subsets[1]); |
| 118 |
|
} |
| 119 |
|
if (preg_match('/^devs\s*:\s*(.*)/m', $block, $devs)) { |
| 120 |
|
$this->_result['devices'][$group]['devs'] = trim($devs[1]); |
| 121 |
|
} |
| 122 |
|
if (preg_match('/^spares\s*:\s*(.*)/m', $block, $spares)) { |
| 123 |
|
$this->_result['devices'][$group]['spares'] = trim($spares[1]); |
| 124 |
|
} |
|
@@ 122-124 (lines=3) @@
|
| 119 |
|
if (preg_match('/^devs\s*:\s*(.*)/m', $block, $devs)) { |
| 120 |
|
$this->_result['devices'][$group]['devs'] = trim($devs[1]); |
| 121 |
|
} |
| 122 |
|
if (preg_match('/^spares\s*:\s*(.*)/m', $block, $spares)) { |
| 123 |
|
$this->_result['devices'][$group]['spares'] = trim($spares[1]); |
| 124 |
|
} |
| 125 |
|
$group = ""; |
| 126 |
|
} |
| 127 |
|
} |