Bulk merge of l2gw changes
[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.mdsal.binding.api.DataObjectModification;
11 import org.opendaylight.mdsal.binding.util.Datastore.Configuration;
12 import org.opendaylight.mdsal.binding.util.Datastore.Operational;
13 import org.opendaylight.mdsal.binding.util.TypedReadWriteTransaction;
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 public interface IHAEventHandler {
18
19     void copyChildGlobalOpUpdateToHAParent(InstanceIdentifier<Node> haPath,
20                                            DataObjectModification<Node> mod,
21                                            TypedReadWriteTransaction<Operational> tx);
22
23     void copyChildPsOpUpdateToHAParent(Node updatedSrcPSNode,
24                                        InstanceIdentifier<Node> haPath,
25                                        DataObjectModification<Node> mod,
26                                        TypedReadWriteTransaction<Operational> tx);
27
28     void copyHAPSUpdateToChild(InstanceIdentifier<Node> haChildPath,
29                                DataObjectModification<Node> mod,
30                                TypedReadWriteTransaction<Configuration> tx);
31
32     void copyHAGlobalUpdateToChild(InstanceIdentifier<Node> haChildPath,
33                                    DataObjectModification<Node> mod,
34                                    TypedReadWriteTransaction<Configuration> tx);
35 }