private static final Logger LOG = LoggerFactory.getLogger(FrmUtil.class);
private static final String SEPARATOR = ":";
private static final long RPC_RESULT_TIMEOUT = 2500;
+ public static final String OPENFLOW_PREFIX = "openflow:";
private static final String JMX_OBJ_NAME_LIST_OF_SHRDS = "org.opendaylight.controller:type="
+ "DistributedConfigDatastore,Category=ShardManager,name=shard-manager-config";
actions = ((WriteActionsCase)instruction.getInstruction())
.getWriteActions().nonnullAction().values();
}
- for (Action action : actions) {
- if (action.getAction().implementedInterface()
- .equals(ActionType.GROUP_ACTION.getActionType())) {
- return ((GroupActionCase) action.getAction()).getGroupAction()
- .getGroupId();
+ if (actions != null) {
+ for (Action action : actions) {
+ if (action.getAction().implementedInterface().equals(ActionType.GROUP_ACTION.getActionType())) {
+ return ((GroupActionCase) action.getAction()).getGroupAction().getGroupId();
+ }
}
}
}