Swap segmentation Id when routing between subnets
[ovsdb.git] / openstack / net-virt / src / main / java / org / opendaylight / ovsdb / openstack / netvirt / api / RoutingProvider.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 : Dave Tucker, Flavio Fernandes
9  */
10
11 package org.opendaylight.ovsdb.openstack.netvirt.api;
12
13 import org.opendaylight.controller.sal.core.Node;
14 import org.opendaylight.controller.sal.utils.Status;
15
16 import java.net.InetAddress;
17
18 /**
19  * This interface allows Routing flows to be written to devices
20  */
21 public interface RoutingProvider {
22
23     Status programRouterInterface(Node node, Long dpid, String srcSegId, String dstSegId, String macAddress,
24                                   InetAddress address, int mask, Action action);
25
26     Status programDefaultRouteEntry(Node node, Long dpid, String segmentationId, String macAddress,
27                                     InetAddress nextHop, Action action);
28
29 }