Merge "workaround for sfc part 2"
[ovsdb.git] / hwvtepsouthbound / hwvtepsouthbound-impl / src / main / java / org / opendaylight / ovsdb / hwvtepsouthbound / transactions / md / HwvtepManagerUpdateCommand.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 import org.opendaylight.controller.md.sal.binding.api.ReadWriteTransaction;
13 import org.opendaylight.ovsdb.hwvtepsouthbound.HwvtepConnectionInstance;
14 import org.opendaylight.ovsdb.lib.message.TableUpdates;
15 import org.opendaylight.ovsdb.lib.notation.UUID;
16 import org.opendaylight.ovsdb.lib.schema.DatabaseSchema;
17 import org.opendaylight.ovsdb.lib.schema.typed.TyperUtils;
18 import org.opendaylight.ovsdb.schema.hardwarevtep.Manager;
19 import org.slf4j.Logger;
20 import org.slf4j.LoggerFactory;
21
22 public class HwvtepManagerUpdateCommand extends AbstractTransactionCommand {
23
24     private static final Logger LOG = LoggerFactory.getLogger(HwvtepManagerUpdateCommand.class);
25     private Map<UUID, Manager> updatedMgrRows;
26     private Map<UUID, Manager> oldMgrRows;
27
28     public HwvtepManagerUpdateCommand(HwvtepConnectionInstance key, TableUpdates updates,
29             DatabaseSchema dbSchema) {
30         super(key, updates, dbSchema);
31         updatedMgrRows = TyperUtils.extractRowsUpdated(Manager.class, getUpdates(),getDbSchema());
32         oldMgrRows = TyperUtils.extractRowsOld(Manager.class, getUpdates(),getDbSchema());
33     }
34
35     @Override
36     public void execute(ReadWriteTransaction transaction) {
37         // TODO Auto-generated method stub
38     }
39
40 }