Comments (8)
Sounds great @gavingray . Maybe stick with the MO type . method name for the cli names, in this case:
The HostSystem.ReconnectHost would be: govc host.reconnect -dc x ...
And HostSystem.DisconnectHost: govc host.disconnect -dc x ...
from govmomi.
I think that reconnect and disconnect are fundamentally different things that what I'm talking about to do here. AddStandaloneHost is a method on the host folder and Destroy is a method on the ComputeResource. Reconnect and Disconnect are used on a HostSystem. Disconnect leaves the host in the inventory and Reconnect assumes that the HostSystem is in the disconnected state. That said, if you'd like to stick closely with the MO paradigms, it would be something more like this.
$ govc datacenter.addstandalonehost -dc=somedatacenter -hostname=somehost ...
$ govc host.destroy -dc=somedatacenter -hostname=something
I think that "addstandalonehost" is pretty wordy though. I think that "addhost" would probably suffice.
I have most of the work here done on the govmomi side. Will just need to add tests and the proper govc implementation. Just let me know what you think and I'll get a PR out stat!
from govmomi.
Ah cool, in that case I'd probably go with "datacenter.host.add" or even just "host.add".
from govmomi.
Agreed. I like host.add. Will do! Thanks for the feedback!
from govmomi.
@bitwisekaizen Hi Gavin, did you end up working on this? If not, somebody else can pick it up.
from govmomi.
I actually have a changed shelved for this. I got sidetracked for a while, but I should be able to put it up in the next couple of days. Hoping to get more active in the next few weeks.
from govmomi.
Thanks for the update.
from govmomi.
We have added both 'host.add' (e01555f) and 'cluster.add' (5154339) commands to govc.
from govmomi.
Related Issues (20)
- [BUG] Missing Tags attribute on tag association unmarshall HOT 2
- [BUG] vcsim: -method-delay does not work
- ResourcePool create: ServerFaultCode: A specified parameter was not correct: ResourceConfigSpec HOT 1
- Update eam api to include new parameter vmResourceConfiguration for configuring resource HOT 1
- Would it be possible to implement a "extract VM info to VMX" feature? HOT 1
- [BUG] Attempt to attach a tag via AttachTagToVStorageObject HOT 1
- [BUG] vcsim: vim.VirtualMachine.snapshot property causes runtime error when not set HOT 3
- Set value for a vApp Option HOT 3
- Provide applicaiton self identification in the default user-agent value
- [BUG] vm.network.add vmxnet3 HOT 1
- [BUG] govc: ServerFaultCode: Length of HTTP request body exceeds configured maximum; 107013 > 100000 HOT 1
- [BUG] Panic when updating vcsim map with partial updates to a field
- [BUG] vmdk file is incomplete when downloaded from SDDC vsphere content library via govc libary.export HOT 3
- Right way to replace/swap attached disk with another existing disk HOT 4
- Ability to reference a publisher content library from another vCenter HOT 1
- New metric about snapshots HOT 1
- [BUG] Help Page https://via.vmw.com/GJ98hk is not availbe / Govc 0.35.0 HOT 3
- [BUG] Govc metrics.ls datastore/myds requires an "Interval" -> -i=real is not working ( VSAN ESA Metrics / Telegraf needed ] HOT 3
- How to get VmDiskFileInfo.CapacityKb from .vmdk file? HOT 3
- Start HOT 1
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 govmomi.