Skeleton implementation of L3 using PipelineOrchestration
[ovsdb.git] / openstack / net-virt-providers / src / main / java / org / opendaylight / ovsdb / openstack / netvirt / providers / openflow13 / services / OutboundNatService.java
1 /*
2  * Copyright (C) 2014 Red Hat, Inc.
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  * Authors : Madhu Venugopal, Dave Tucker
9  */
10
11 package org.opendaylight.ovsdb.openstack.netvirt.providers.openflow13.services;
12
13 import org.opendaylight.controller.sal.core.Node;
14 import org.opendaylight.controller.sal.utils.Status;
15 import org.opendaylight.controller.sal.utils.StatusCode;
16 import org.opendaylight.ovsdb.openstack.netvirt.api.Action;
17 import org.opendaylight.ovsdb.openstack.netvirt.api.OutboundNatProvider;
18 import org.opendaylight.ovsdb.openstack.netvirt.providers.openflow13.AbstractServiceInstance;
19 import org.opendaylight.ovsdb.openstack.netvirt.providers.openflow13.Service;
20
21 import java.net.InetAddress;
22
23 public class OutboundNatService extends AbstractServiceInstance implements OutboundNatProvider {
24     public OutboundNatService() {
25         super(Service.OUTBOUND_NAT);
26     }
27
28     public OutboundNatService(Service service) {
29         super(service);
30     }
31
32     @Override
33     public boolean isBridgeInPipeline (String nodeId) {
34         return true;
35     }
36
37     @Override
38     public Status programIpRewriteRule(Node node, Long dpid, String segmentationId, InetAddress matchAddress,
39                                        InetAddress rewriteAddress, Action action) {
40         return new Status(StatusCode.NOTIMPLEMENTED);
41     }
42
43     @Override
44     public Status programIpRewriteExclusion(Node node, Long dpid, String segmentationId, String excludedCidr,
45                                             Action action) {
46         return new Status(StatusCode.NOTIMPLEMENTED);
47     }
48 }