Skip to content

Commit 41fc03d

Browse files
committed
bigswitch-vns: Fix since version in apis, add spring annotation to fix NPE
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
1 parent e4b2fe4 commit 41fc03d

4 files changed

Lines changed: 5 additions & 3 deletions

File tree

plugins/network-elements/bigswitch-vns/src/com/cloud/api/commands/AddBigSwitchVnsDeviceCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
import com.cloud.user.UserContext;
3838
import com.cloud.utils.exception.CloudRuntimeException;
3939

40-
@APICommand(name = "addBigSwitchVnsDevice", responseObject=BigSwitchVnsDeviceResponse.class, description="Adds a BigSwitch VNS device")
40+
@APICommand(name = "addBigSwitchVnsDevice", responseObject=BigSwitchVnsDeviceResponse.class, description="Adds a BigSwitch VNS device", since = "4.1.0")
4141
public class AddBigSwitchVnsDeviceCmd extends BaseAsyncCmd {
4242
private static final String s_name = "addbigswitchvnsdeviceresponse";
4343
@Inject BigSwitchVnsElementService _bigswitchVnsElementService;

plugins/network-elements/bigswitch-vns/src/com/cloud/api/commands/DeleteBigSwitchVnsDeviceCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
import com.cloud.user.UserContext;
3636
import com.cloud.utils.exception.CloudRuntimeException;
3737

38-
@APICommand(name = "deleteBigSwitchVnsDevice", responseObject=SuccessResponse.class, description=" delete a bigswitch vns device")
38+
@APICommand(name = "deleteBigSwitchVnsDevice", responseObject=SuccessResponse.class, description=" delete a bigswitch vns device", since = "4.1.0")
3939
public class DeleteBigSwitchVnsDeviceCmd extends BaseAsyncCmd {
4040
private static final String s_name = "deletebigswitchvnsdeviceresponse";
4141
@Inject BigSwitchVnsElementService _bigswitchVnsElementService;

plugins/network-elements/bigswitch-vns/src/com/cloud/api/commands/ListBigSwitchVnsDevicesCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
import com.cloud.network.element.BigSwitchVnsElementService;
4242
import com.cloud.utils.exception.CloudRuntimeException;
4343

44-
@APICommand(name = "listBigSwitchVnsDevices", responseObject=BigSwitchVnsDeviceResponse.class, description="Lists BigSwitch Vns devices")
44+
@APICommand(name = "listBigSwitchVnsDevices", responseObject=BigSwitchVnsDeviceResponse.class, description="Lists BigSwitch Vns devices", since = "4.1.0")
4545
public class ListBigSwitchVnsDevicesCmd extends BaseListCmd {
4646
public static final Logger s_logger = Logger.getLogger(ListBigSwitchVnsDevicesCmd.class.getName());
4747
private static final String s_name = "listbigswitchvnsdeviceresponse";

plugins/network-elements/bigswitch-vns/src/com/cloud/network/element/BigSwitchVnsElement.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,9 @@
8888
import com.cloud.vm.ReservationContext;
8989
import com.cloud.vm.VirtualMachine;
9090
import com.cloud.vm.VirtualMachineProfile;
91+
import org.springframework.stereotype.Component;
9192

93+
@Component
9294
@Local(value = {NetworkElement.class, ConnectivityProvider.class})
9395
public class BigSwitchVnsElement extends AdapterBase implements
9496
BigSwitchVnsElementService, ConnectivityProvider, ResourceStateAdapter {

0 commit comments

Comments
 (0)