blob: 7bd2b99e487b494efb279a663835944d77683065 [file] [log] [blame]
Jonathan Hart6344f572015-12-15 08:26:25 -08001/*
2 * Copyright 2016 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 */
16
17package org.onosproject.routing.config;
18
19import org.onosproject.core.ApplicationId;
20import org.onosproject.net.ConnectPoint;
21import org.onosproject.net.config.Config;
22
23/**
24 * Routing configuration.
25 */
26public class RouterConfig extends Config<ApplicationId> {
27
28 public static final String CP_CONNECT_POINT = "controlPlaneConnectPoint";
29
30 /**
31 * Returns the routing control plane connect point.
32 *
33 * @return control plane connect point
34 */
35 public ConnectPoint getControlPlaneConnectPoint() {
36 return ConnectPoint.deviceConnectPoint(object.path(CP_CONNECT_POINT).asText());
37 }
38}