natservice dead code removal
[netvirt.git] / natservice / api / src / main / java / org / opendaylight / netvirt / natservice / api / SnatServiceManager.java
1 /*
2  * Copyright (c) 2017 Red Hat, Inc. 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.natservice.api;
9
10 import java.math.BigInteger;
11 import java.util.concurrent.ExecutionException;
12 import org.eclipse.jdt.annotation.Nullable;
13 import org.opendaylight.genius.infra.Datastore.Configuration;
14 import org.opendaylight.genius.infra.TypedReadWriteTransaction;
15 import org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.natservice.rev160111.ext.routers.Routers;
16
17 public interface SnatServiceManager {
18
19     enum Action {
20         SNAT_ALL_SWITCH_ENBL,
21         SNAT_ALL_SWITCH_DISBL,
22         SNAT_ROUTER_ENBL,
23         SNAT_ROUTER_DISBL,
24         SNAT_ROUTER_UPDATE,
25         CNT_ROUTER_ALL_SWITCH_ENBL,
26         CNT_ROUTER_ALL_SWITCH_DISBL,
27         CNT_ROUTER_ENBL,
28         CNT_ROUTER_DISBL
29     }
30
31     void notify(TypedReadWriteTransaction<Configuration> confTx, Routers router, @Nullable Routers oldRouter,
32         BigInteger primarySwitchId, @Nullable BigInteger dpnId, Action action)
33         throws ExecutionException, InterruptedException;
34
35 }