2 * Copyright (c) 2015 Ericsson India Global Services Pvt Ltd. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.opendaylight.ovsdb.hwvtepsouthbound.transactions.md;
13 import org.opendaylight.controller.md.sal.binding.api.ReadWriteTransaction;
14 import org.opendaylight.ovsdb.hwvtepsouthbound.HwvtepConnectionInstance;
15 import org.opendaylight.ovsdb.lib.message.TableUpdates;
16 import org.opendaylight.ovsdb.lib.notation.UUID;
17 import org.opendaylight.ovsdb.lib.schema.DatabaseSchema;
18 import org.opendaylight.ovsdb.lib.schema.typed.TyperUtils;
19 import org.opendaylight.ovsdb.schema.hardwarevtep.UcastMacsLocal;
20 import org.slf4j.Logger;
21 import org.slf4j.LoggerFactory;
23 public class UcastMacsLocalUpdateCommand extends AbstractTransactionCommand {
25 private static final Logger LOG = LoggerFactory.getLogger(UcastMacsLocalUpdateCommand.class);
26 private Map<UUID, UcastMacsLocal> updatedUMacsLocalRows;
27 private Map<UUID, UcastMacsLocal> oldUMacsLocalRows;
29 public UcastMacsLocalUpdateCommand(HwvtepConnectionInstance key, TableUpdates updates,
30 DatabaseSchema dbSchema) {
31 super(key, updates, dbSchema);
32 updatedUMacsLocalRows = TyperUtils.extractRowsUpdated(UcastMacsLocal.class, getUpdates(),getDbSchema());
33 oldUMacsLocalRows = TyperUtils.extractRowsOld(UcastMacsLocal.class, getUpdates(),getDbSchema());
37 public void execute(ReadWriteTransaction transaction) {
38 // TODO Auto-generated method stub