use of com.cloud.agent.resource.virtualnetwork.model.VpnUserList in project cloudstack by apache.
the class VpnUsersConfigItem method generateConfig.
@Override
public List<ConfigItem> generateConfig(final NetworkElementCommand cmd) {
final VpnUsersCfgCommand command = (VpnUsersCfgCommand) cmd;
final List<VpnUser> vpnUsers = new LinkedList<VpnUser>();
for (final VpnUsersCfgCommand.UsernamePassword userpwd : command.getUserpwds()) {
vpnUsers.add(new VpnUser(userpwd.getUsername(), userpwd.getPassword(), userpwd.isAdd()));
}
final VpnUserList vpnUserList = new VpnUserList(vpnUsers);
return generateConfigItems(vpnUserList);
}
Aggregations