2 * Copyright (c) 2017 Red Hat, Inc. and others. All rights reserved.
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
8 package org.opendaylight.netvirt.natservice.api;
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;
17 public interface SnatServiceManager {
21 SNAT_ALL_SWITCH_DISBL,
25 CNT_ROUTER_ALL_SWITCH_ENBL,
26 CNT_ROUTER_ALL_SWITCH_DISBL,
31 void notify(TypedReadWriteTransaction<Configuration> confTx, Routers router, @Nullable Routers oldRouter,
32 BigInteger primarySwitchId, @Nullable BigInteger dpnId, Action action)
33 throws ExecutionException, InterruptedException;