Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OaBayCount returned value is 0 #153

Closed
PGHPE opened this issue Feb 7, 2019 · 1 comment
Closed

OaBayCount returned value is 0 #153

PGHPE opened this issue Feb 7, 2019 · 1 comment
Assignees
Labels

Comments

@PGHPE
Copy link
Contributor

PGHPE commented Feb 7, 2019

Scenario/Intent

Using GetEnclosureByName, the return value for OaBayCount is 0

Environment Details

  • Golang binding for HPE OneView Version: Latest/Master
  • OneView SDK Version:
  • OneView Appliance Version: 4.10
  • OneView Client API Version: 800
  • Golang Version: 1.11.4
  • Platform: Windows 10

Steps to Reproduce

Using the OneView 4.10 Simulator,

I have the following code:

package main

import (
"fmt"

"github.com/HewlettPackard/oneview-golang/ov"

)

func main() {

// Connect
var (
	clientOV *ov.OVClient
)
ovc := clientOV.NewOVClient("Administrator", "password", "", "https://192.168.1.15", false, 600, "*")

// Get Enclosure List
enclist, _ := ovc.GetEnclosures("", "", "", "", "")

// Get Detail of each Enclosure
for i := 0; i < len(enclist.Members); i++ {
	enc, _ := ovc.GetEnclosureByName(enclist.Members[i].Name)
	fmt.Println(enc.SerialNumber)
	fmt.Println("OA  Count: ", enc.OaBayCount)
	fmt.Println("IC  Count: ", enc.InterconnectBayCount)
	fmt.Println("Bay Count: ", enc.DeviceBayCount)
	fmt.Println("OA  Lenght:", len(enc.OA))
	fmt.Println("VC  Lenght:", len(enc.InterconnectBays))
	fmt.Println("Bay Lenght:", len(enc.DeviceBays))
	fmt.Println()
}

}

The output is this code is:

SGH100X6J1
OA Count: 0
IC Count: 8
Bay Count: 16
OA Lenght: 0
VC Lenght: 8
Bay Lenght: 16

SGH102X6J1
OA Count: 0
IC Count: 8
Bay Count: 16
OA Lenght: 0
VC Lenght: 8
Bay Lenght: 16

Expected Result

enc.OaBayCount = 2
len(enc.OA) = 2

Actual Result

OaBayCount = 0
Also, OAMAP is reporting 0

@jyothisgm
Copy link
Collaborator

Issue Fixed in PR
#156

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants