d0734d41b016b384231c2b0d030dbebea6621a1e
[netvirt.git] / openstack / net-virt / src / main / java / org / opendaylight / netvirt / openstack / netvirt / api / OutboundNatProvider.java
1 /*
2  * Copyright (c) 2014, 2015 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
9 package org.opendaylight.netvirt.openstack.netvirt.api;
10
11 import java.net.InetAddress;
12
13 /**
14  *  This interface allows NAT flows to be written to devices
15  */
16 public interface OutboundNatProvider {
17     Status programIpRewriteRule(Long dpidLong,
18                                 String matchSegmentationId,
19                                 String matchDestMacAddress,
20                                 InetAddress matchSrcAddress,
21                                 String rewriteSrcMacAddress,
22                                 String rewriteDestMacAddress,
23                                 InetAddress rewriteSrcAddress,
24                                 Long OutPort,
25                                 Action action);
26
27     Status programIpRewriteExclusion(Long dpid, String segmentationId,
28                                      String excludedCidr, Action action);
29
30 }