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

Unity: add hlu property to lun.host_access #308

Open
Murray-LIANG opened this issue Apr 29, 2020 · 0 comments
Open

Unity: add hlu property to lun.host_access #308

Murray-LIANG opened this issue Apr 29, 2020 · 0 comments
Assignees

Comments

@Murray-LIANG
Copy link
Contributor

Currently, the user needs to work around it using:

In [30]: host = lun.host_access[0].host                                                                                                                                                       

In [31]: host                                                                                                                                                                                 
Out[31]: 
{
    "UnityHost": {
        "existed": true,
        "hash": 8745316769505,
        "id": "Host_13",
        "name": "10.226.198.144"
    }
}

In [32]: host.update()
… snipIn [33]: host.host_luns                                                                                                                                                                       
Out[33]: 
{
    "UnityHostLunList": [
        {
            "UnityHostLun": {
                "existed": true,
                "hash": 8745316615176,
                "hlu": 0,
                "id": "Host_13_sv_17001_prod",
                "lun": {
                    "UnityLun": {
                        "hash": 8745316615218
                    }
                }
            }
        }
    ]
}

In [34]: host.host_luns[0].hlu                                                                                                                                                                
Out[34]: 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants