-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProactiveControllerAlt.py
More file actions
26 lines (18 loc) · 1009 Bytes
/
Copy pathProactiveControllerAlt.py
File metadata and controls
26 lines (18 loc) · 1009 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/python
""" Proactive controller alternative implementation which uses a protection based
recovery method to deal with link failure. This version of the proactive controller
will compute loose path splices. See ```ProactiveController.py``` for implementation.
Usage:
ryu-manager ProactiveControllerAlt.py --observe-links
"""
from ProactiveController import ProactiveController
class ProactiveControllerAlt(ProactiveController):
""" Ryu proactive controller alternative implementation. Controller will inherit
all behaivour and operations from the standard proactive controller. Path
splices will be computed as loose. A lose path splice extends the possible list
of candidate path splice nodes resulting in more diverse path splices.
Refer to ```ProactiveControllerAlt.py``` for more info.
"""
LOOSE_SPLICE = True # COMPUTE LOOSE PATH SPLICES
def __init__(self, *args, **kwargs):
super(ProactiveControllerAlt, self).__init__(*args, **kwargs)