blob: 1acc2b4e7e99c160224bf7d2f83aa730bb33c71d [file] [log] [blame]
Matteo Scandolo4e0e88c2017-08-08 13:05:25 -07001
2# Copyright 2017-present Open Networking Foundation
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
Rizwan Haider51fdb3f2016-11-09 18:29:32 -050017from xos.logger import Logger, logging
18
19logger = Logger(level=logging.INFO)
20
21
22class PseudowireProvider(object):
23
24 def __init__(self, **args):
25 pass
26
27 # Methods to support creation
28 #
29 # Returns: handle
30 #
31 def create(self, port1, port2, vlanid, pseudowireservice):
32 # Default method needs to be overriden
33 logger.info("create called - should be overriden")
34
35 # Method to support connection
36 #
37 def connect(self, handle):
38 # Default method needs to be overriden
39 logger.info("connect called - should be overriden")
40 return None
41
42 # Method to support disconnection
43 #
44 def disconnect(self, handle):
45 # Default method needs to be overriden
46 logger.info("discoconnect called - should be overriden")
47
48 # Methods to support deletion
49 #
50 def delete(self, handle):
51 # Default method needs to be overriden
52 logger.info("delete called - should be overriden")