mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
bigswitch-vns: Fix since version in apis, add spring annotation to fix NPE
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
This commit is contained in:
parent
e4b2fe42e0
commit
41fc03d4e7
@ -37,7 +37,7 @@ import com.cloud.network.element.BigSwitchVnsElementService;
|
||||
import com.cloud.user.UserContext;
|
||||
import com.cloud.utils.exception.CloudRuntimeException;
|
||||
|
||||
@APICommand(name = "addBigSwitchVnsDevice", responseObject=BigSwitchVnsDeviceResponse.class, description="Adds a BigSwitch VNS device")
|
||||
@APICommand(name = "addBigSwitchVnsDevice", responseObject=BigSwitchVnsDeviceResponse.class, description="Adds a BigSwitch VNS device", since = "4.1.0")
|
||||
public class AddBigSwitchVnsDeviceCmd extends BaseAsyncCmd {
|
||||
private static final String s_name = "addbigswitchvnsdeviceresponse";
|
||||
@Inject BigSwitchVnsElementService _bigswitchVnsElementService;
|
||||
|
||||
@ -35,7 +35,7 @@ import com.cloud.network.element.BigSwitchVnsElementService;
|
||||
import com.cloud.user.UserContext;
|
||||
import com.cloud.utils.exception.CloudRuntimeException;
|
||||
|
||||
@APICommand(name = "deleteBigSwitchVnsDevice", responseObject=SuccessResponse.class, description=" delete a bigswitch vns device")
|
||||
@APICommand(name = "deleteBigSwitchVnsDevice", responseObject=SuccessResponse.class, description=" delete a bigswitch vns device", since = "4.1.0")
|
||||
public class DeleteBigSwitchVnsDeviceCmd extends BaseAsyncCmd {
|
||||
private static final String s_name = "deletebigswitchvnsdeviceresponse";
|
||||
@Inject BigSwitchVnsElementService _bigswitchVnsElementService;
|
||||
|
||||
@ -41,7 +41,7 @@ import com.cloud.network.BigSwitchVnsDeviceVO;
|
||||
import com.cloud.network.element.BigSwitchVnsElementService;
|
||||
import com.cloud.utils.exception.CloudRuntimeException;
|
||||
|
||||
@APICommand(name = "listBigSwitchVnsDevices", responseObject=BigSwitchVnsDeviceResponse.class, description="Lists BigSwitch Vns devices")
|
||||
@APICommand(name = "listBigSwitchVnsDevices", responseObject=BigSwitchVnsDeviceResponse.class, description="Lists BigSwitch Vns devices", since = "4.1.0")
|
||||
public class ListBigSwitchVnsDevicesCmd extends BaseListCmd {
|
||||
public static final Logger s_logger = Logger.getLogger(ListBigSwitchVnsDevicesCmd.class.getName());
|
||||
private static final String s_name = "listbigswitchvnsdeviceresponse";
|
||||
|
||||
@ -88,7 +88,9 @@ import com.cloud.vm.NicProfile;
|
||||
import com.cloud.vm.ReservationContext;
|
||||
import com.cloud.vm.VirtualMachine;
|
||||
import com.cloud.vm.VirtualMachineProfile;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@Component
|
||||
@Local(value = {NetworkElement.class, ConnectivityProvider.class})
|
||||
public class BigSwitchVnsElement extends AdapterBase implements
|
||||
BigSwitchVnsElementService, ConnectivityProvider, ResourceStateAdapter {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user