Add functionality to check which features are enable for a guest system.
Work done:
Moved nil check into *Client.CheckVmRef() bd6f10d241dedbbd8aa98b8e74a1a5b946b37866 7c6d46ce75b54afe7dc0854460704df06573a423
Changed get guest command to get guest config d5a6ce30b8c2ff636318d726aab2573ea65c618a
Added the get guest feature command ca58b91dcca44ff40c3ad92d8c91944b825b6d2c
Added unit tests 11feae1f09a04483dcd94bcbadad72a4a3fc1550
Added function GuestHasFeature() to check if the guest has a specific feature 11feae1f09a04483dcd94bcbadad72a4a3fc1550
Added function ListGuestFeatures() to check all the features a guest has enabled 11feae1f09a04483dcd94bcbadad72a4a3fc1550
Put value in alphabetical order 938fbc2900f310bc69dd1614ae7c8e37738665b1
The reason GuestHasFeature() and ListGuestFeatures() exist is because only one feature can be checked at the time resulting in multiple API calls. For this reason I didn't incorporate it into ConfigQemu and ConfigLxc.
Add functionality to check which features are enable for a guest system.
Work done:
*Client.CheckVmRef()
bd6f10d241dedbbd8aa98b8e74a1a5b946b37866 7c6d46ce75b54afe7dc0854460704df06573a423get guest
command toget guest config
d5a6ce30b8c2ff636318d726aab2573ea65c618aget guest feature
command ca58b91dcca44ff40c3ad92d8c91944b825b6d2cGuestHasFeature()
to check if the guest has a specific feature 11feae1f09a04483dcd94bcbadad72a4a3fc1550ListGuestFeatures()
to check all the features a guest has enabled 11feae1f09a04483dcd94bcbadad72a4a3fc1550The reason
GuestHasFeature()
andListGuestFeatures()
exist is because only one feature can be checked at the time resulting in multiple API calls. For this reason I didn't incorporate it intoConfigQemu
andConfigLxc
.