Skip to content

Commit 595260a

Browse files
author
Build2 CI
committed
Move VnfService to correct package (service), fix command imports - 178→58 errors, all method signatures now resolved
1 parent 16d6a17 commit 595260a

File tree

6 files changed

+26
-64
lines changed

6 files changed

+26
-64
lines changed

plugins/vnf-framework/src/main/java/org/apache/cloudstack/vnf/VnfService.java

Lines changed: 0 additions & 39 deletions
This file was deleted.

plugins/vnf-framework/src/main/java/org/apache/cloudstack/vnf/api/command/ListVnfDictionariesCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import org.apache.cloudstack.api.BaseListCmd;
66
import org.apache.cloudstack.api.Parameter;
77
import org.apache.cloudstack.api.response.ListResponse;
8-
import org.apache.cloudstack.vnf.VnfService;
8+
import org.apache.cloudstack.vnf.service.VnfService;
99
import org.apache.cloudstack.vnf.api.response.VnfDictionaryResponse;
1010

1111
import javax.inject.Inject;

plugins/vnf-framework/src/main/java/org/apache/cloudstack/vnf/api/command/ReconcileVnfNetworkCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import org.apache.cloudstack.api.Parameter;
99
import org.apache.cloudstack.api.response.NetworkResponse;
1010
import org.apache.cloudstack.api.response.SuccessResponse;
11-
import org.apache.cloudstack.vnf.VnfService;
11+
import org.apache.cloudstack.vnf.service.VnfService;
1212

1313
import javax.inject.Inject;
1414

plugins/vnf-framework/src/main/java/org/apache/cloudstack/vnf/api/command/TestVnfConnectivityCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import org.apache.cloudstack.api.BaseAsyncCmd;
88
import org.apache.cloudstack.api.Parameter;
99
import org.apache.cloudstack.api.response.SuccessResponse;
10-
import org.apache.cloudstack.vnf.VnfService;
10+
import org.apache.cloudstack.vnf.service.VnfService;
1111
import org.apache.cloudstack.vnf.api.response.VnfInstanceResponse;
1212

1313
import javax.inject.Inject;

plugins/vnf-framework/src/main/java/org/apache/cloudstack/vnf/api/command/UploadVnfDictionaryCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import org.apache.cloudstack.api.BaseCmd;
66
import org.apache.cloudstack.api.Parameter;
77
import org.apache.cloudstack.api.response.SuccessResponse;
8-
import org.apache.cloudstack.vnf.VnfService;
8+
import org.apache.cloudstack.vnf.service.VnfService;
99

1010
import javax.inject.Inject;
1111

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,27 @@
11
package org.apache.cloudstack.vnf.service;
22

3-
import org.apache.cloudstack.vnf.api.command.CreateVnfFirewallRuleCmd;
4-
import org.apache.cloudstack.vnf.api.response.VnfFirewallRuleResponse;
3+
import com.cloud.exception.CloudException;
4+
import org.apache.cloudstack.vnf.dao.VnfOperationVO;
5+
import org.apache.cloudstack.vnf.dao.VnfOperationVO.State;
6+
import org.apache.cloudstack.vnf.*;
7+
import java.util.List;
58

6-
/**
7-
* Service interface for VNF operations
8-
*/
99
public interface VnfService {
10-
11-
/**
12-
* Create a firewall rule on a VNF instance
13-
* @param cmd The command containing rule parameters
14-
* @return VnfFirewallRuleResponse with operation result
15-
* @throws Exception if operation fails
16-
*/
17-
VnfFirewallRuleResponse createFirewallRule(CreateVnfFirewallRuleCmd cmd) throws Exception;
18-
19-
/**
20-
* Delete a firewall rule from a VNF instance
21-
* @param ruleId The rule ID to delete
22-
* @return true if successful
23-
* @throws Exception if operation fails
24-
*/
25-
boolean deleteFirewallRule(String ruleId) throws Exception;
10+
11+
// Operation queries
12+
VnfOperationVO findOperationByRuleId(String ruleId) throws CloudException;
13+
List<VnfOperationVO> listOperationsByVnfInstance(Long vnfInstanceId) throws CloudException;
14+
List<VnfOperationVO> listOperationsByVnfInstanceAndState(Long vnfInstanceId, State state) throws CloudException;
15+
List<VnfOperationVO> listOperationsByState(State state) throws CloudException;
16+
List<VnfOperationVO> listAllOperations(Long startIndex, Long pageSize) throws CloudException;
17+
18+
// Dictionary management
19+
List<VnfDictionary> listDictionaries(Long accountId) throws CloudException;
20+
VnfDictionary uploadDictionary(String dictionaryData, String vendor, Long accountId) throws CloudException;
21+
22+
// Connectivity testing
23+
VnfConnectivityResult testConnectivity(Long vnfApplianceId) throws CloudException;
24+
25+
// Network reconciliation
26+
VnfReconciliationResult reconcileNetwork(Long networkId) throws CloudException;
2627
}

0 commit comments

Comments
 (0)