Merge "rework sfc flows 2"
[ovsdb.git] / hwvtepsouthbound / hwvtepsouthbound-impl / src / main / java / org / opendaylight / ovsdb / hwvtepsouthbound / transactions / md / UcastMacsLocalUpdateCommand.java
1 /*
2  * Copyright (c) 2015 Ericsson India Global Services Pvt Ltd. and others.  All rights reserved.
3  *
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
7  */
8
9 package org.opendaylight.ovsdb.hwvtepsouthbound.transactions.md;
10
11 import java.util.Map;
12
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;
22
23 public class UcastMacsLocalUpdateCommand extends AbstractTransactionCommand {
24
25     private static final Logger LOG = LoggerFactory.getLogger(UcastMacsLocalUpdateCommand.class);
26     private Map<UUID, UcastMacsLocal> updatedUMacsLocalRows;
27     private Map<UUID, UcastMacsLocal> oldUMacsLocalRows;
28
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());
34     }
35
36     @Override
37     public void execute(ReadWriteTransaction transaction) {
38         // TODO Auto-generated method stub
39     }
40
41 }