blob: 26e6e100cfbcd728305b542cd313acc801a9e4af [file] [log] [blame]
Pingping Linffa27d32015-04-30 14:41:03 -07001/*
2 * Copyright 2015 Open Networking Laboratory
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package org.onosproject.virtualbng;
17
18import org.onlab.packet.IpAddress;
19
20/**
21 * Provides service of the virtual BNG.
22 */
23public interface VbngService {
24
25 /**
26 * Creates a virtual BNG.
27 * <p>
28 * It firstly finds out an available local public IP address. Then, it
29 * sets up paths between the host configured with private IP and
30 * next hop. Finally it returns the public IP address.
31 * </p>
32 *
33 * @param privateIpAddress the private IP address
34 * @return the public address if a virtual BGN is successfully created,
35 * otherwise return null
36 */
37 public IpAddress createVbng(IpAddress privateIpAddress);
38
39}