10ec57ec5251da2add5bdbd2c8390b5b33fa5846
[ovsdb.git] / hwvtepsouthbound / hwvtepsouthbound-impl / src / main / java / org / opendaylight / ovsdb / hwvtepsouthbound / transactions / md / McastMacsRemoteUpdateCommand.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.McastMacsRemote;
20 import org.slf4j.Logger;
21 import org.slf4j.LoggerFactory;
22
23 public class McastMacsRemoteUpdateCommand extends AbstractTransactionCommand {
24
25     private static final Logger LOG = LoggerFactory.getLogger(McastMacsRemoteUpdateCommand.class);
26     private Map<UUID, McastMacsRemote> updatedMMacsRemoteRows;
27     private Map<UUID, McastMacsRemote> oldMMacsRemoteRows;
28
29     public McastMacsRemoteUpdateCommand(HwvtepConnectionInstance key, TableUpdates updates,
30             DatabaseSchema dbSchema) {
31         super(key, updates, dbSchema);
32         updatedMMacsRemoteRows = TyperUtils.extractRowsUpdated(McastMacsRemote.class, getUpdates(),getDbSchema());
33         oldMMacsRemoteRows = TyperUtils.extractRowsOld(McastMacsRemote.class, getUpdates(),getDbSchema());
34     }
35
36     @Override
37     public void execute(ReadWriteTransaction transaction) {
38         // TODO Auto-generated method stub
39     }
40
41 }