Rizwan Haider | 51fdb3f | 2016-11-09 18:29:32 -0500 | [diff] [blame^] | 1 | from xos.logger import Logger, logging |
| 2 | |
| 3 | logger = Logger(level=logging.INFO) |
| 4 | |
| 5 | |
| 6 | class PseudowireProvider(object): |
| 7 | |
| 8 | def __init__(self, **args): |
| 9 | pass |
| 10 | |
| 11 | # Methods to support creation |
| 12 | # |
| 13 | # Returns: handle |
| 14 | # |
| 15 | def create(self, port1, port2, vlanid, pseudowireservice): |
| 16 | # Default method needs to be overriden |
| 17 | logger.info("create called - should be overriden") |
| 18 | |
| 19 | # Method to support connection |
| 20 | # |
| 21 | def connect(self, handle): |
| 22 | # Default method needs to be overriden |
| 23 | logger.info("connect called - should be overriden") |
| 24 | return None |
| 25 | |
| 26 | # Method to support disconnection |
| 27 | # |
| 28 | def disconnect(self, handle): |
| 29 | # Default method needs to be overriden |
| 30 | logger.info("discoconnect called - should be overriden") |
| 31 | |
| 32 | # Methods to support deletion |
| 33 | # |
| 34 | def delete(self, handle): |
| 35 | # Default method needs to be overriden |
| 36 | logger.info("delete called - should be overriden") |