return result;
}
- public static List<Action> getEgressActionsForInterface(String interfaceName, Long tunnelKey,
+ public static List<Action> getEgressActionsForInterface(String interfaceName, Long tunnelKey, Integer actionKey,
DataBroker dataBroker, Boolean isDefaultEgress) {
- List<ActionInfo> listActionInfo = getEgressActionInfosForInterface(interfaceName, tunnelKey, 0, dataBroker, isDefaultEgress);
+ List<ActionInfo> listActionInfo = getEgressActionInfosForInterface(interfaceName, tunnelKey, actionKey==null?0:actionKey, dataBroker, isDefaultEgress);
List<Action> actionsList = new ArrayList<>();
for (ActionInfo actionInfo : listActionInfo) {
actionsList.add(actionInfo.buildAction());
}
public static void unbindService(DataBroker dataBroker, String interfaceName, InstanceIdentifier<BoundServices>
- boundServicesInstanceIdentifier, Class<? extends ServiceModeBase> serviceMode){
+ boundServicesInstanceIdentifier, String parentInterface){
LOG.info("Unbinding Service from : {}", interfaceName);
DataStoreJobCoordinator dataStoreJobCoordinator = DataStoreJobCoordinator.getInstance();
- dataStoreJobCoordinator.enqueueJob(interfaceName,
+ dataStoreJobCoordinator.enqueueJob(parentInterface,
() -> {
WriteTransaction t = dataBroker.newWriteOnlyTransaction();
t.delete(LogicalDatastoreType.CONFIGURATION, boundServicesInstanceIdentifier);