NETVIRT-1630 migrate to md-sal APIs
[netvirt.git] / elanmanager / impl / src / main / java / org / opendaylight / netvirt / elan / l2gw / ha / handlers / IHAEventHandler.java
1 /*
2  * Copyright (c) 2016 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 package org.opendaylight.netvirt.elan.l2gw.ha.handlers;
9
10 import org.opendaylight.genius.infra.Datastore.Configuration;
11 import org.opendaylight.genius.infra.Datastore.Operational;
12 import org.opendaylight.genius.infra.TypedReadWriteTransaction;
13 import org.opendaylight.mdsal.binding.api.DataObjectModification;
14 import org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node;
15 import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
16
17
18 public interface IHAEventHandler {
19
20
21     void copyChildGlobalOpUpdateToHAParent(InstanceIdentifier<Node> haPath,
22                                            DataObjectModification<Node> mod,
23                                            TypedReadWriteTransaction<Operational> tx);
24
25     void copyChildPsOpUpdateToHAParent(Node updatedSrcPSNode,
26                                        InstanceIdentifier<Node> haPath,
27                                        DataObjectModification<Node> mod,
28                                        TypedReadWriteTransaction<Operational> tx);
29
30     void copyHAPSUpdateToChild(InstanceIdentifier<Node> haChildPath,
31                                DataObjectModification<Node> mod,
32                                TypedReadWriteTransaction<Configuration> tx)
33             ;
34
35     void copyHAGlobalUpdateToChild(InstanceIdentifier<Node> haChildPath,
36                                    DataObjectModification<Node> mod,
37                                    TypedReadWriteTransaction<Configuration> tx)
38             ;
39 }