Comments (1)
def createVLUN(self, volumeName, lun=None, hostname=None, portPos=None,
noVcn=None, overrideLowerPriority=None, auto=False):
If auto = True, the info['lun'] will be set as zero, and maxAutoLun will be set as zero, which means no max. The vlun will be created with the lun number between 0 and max.
Current code:
if auto:
info['autoLun'] = True
info['maxAutoLun'] = 0
info['lun'] = 0
Can we change it to:
if auto:
info['autoLun'] = True
info['maxAutoLun'] = 0
info['lun'] = 0 if not lun else lun
This way if user call the method as:
createVLUN(volumeName=vv_name, hostname=host, auto=True, lun=257)
The client will create vlun with the lun number start with 257 to max.
And if user call the method as:
createVLUN(volumeName=vv_name, hostname=host, auto=True)
The client will create vlun with the lun number start with 0 to max.
from python-3parclient.
Related Issues (20)
- No tags for 4.2.5 and 4.2.4 in git HOT 4
- Documentation for old 4.2.2 version on http://pythonhosted.org/python-3parclient/ HOT 2
- Add support system reporter commands.
- upgrade of python-3parclient from 4.2.5 to 4.2.7 is failing
- Peer persistence? HOT 1
- Backward compatibility on session generation broken on 3PAR WSAPI v3 HOT 2
- Proper Error Handling Missing at client initialization
- Attributed Error when print Exception
- NameError: name 'body' is not defined HOT 1
- INT_SERV_ERR 1 500 returned when using getVolumes() API call HOT 3
- (HTTP 500) 1 - internal server error when trying to login
- getVLUN() method is misleading HOT 2
- pop from empty list error in docker volume plugin initialization
- Debug logging cannot be disabled and SSH logs are not enabled when passing debug=True on client init
- SSH multi-line-parser fails on slow connections
- Application set addition to the Volume HOT 2
- You can't just compare version strings like this HOT 2
- ssh.HPE3PARSSHClient shownode incomplete output
- TypeError: catching classes that do not inherit from BaseException is not allowed
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-3parclient.