blob: a6aa62346779133df082bc2079c987ab86a5011b [file] [log] [blame]
mohamedrahil00f6f262016-11-24 20:20:41 +05301/*
2 * Copyright 2016-present 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.pcep.controller;
18
19/**
20 * PCEP peer state information.
21 */
22
23public interface PcepCfg {
24
25 State getState();
26
27 void setState(State state);
28
29 enum State {
30 /**
31 * Signifies that its just created.
32 */
33 INIT,
34
35 /**
36 * Signifies that only IP Address is configured.
37 */
38 OPENWAIT,
39
40 /**
41 * Signifies that only Autonomous System is configured.
42 */
43 KEEPWAIT,
44
45 /**
46 * Signifies that both IP and Autonomous System is configured.
47 */
48 ESTABLISHED,
49
50 /**
51 * Signifies that both IP and Autonomous System is down.
52 */
53 DOWN
54 }
55
56}