blob: 6ef04ce3ce3f8b9682f2fbd8423a25cb6c986c89 [file] [log] [blame]
Shad Ansari2fc48642017-06-10 01:40:32 -07001#
2# Copyright 2017 the original author or authors.
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
17"""
18Asfvolt16 OLT adapter
19"""
20
Shad Ansarib32e31c2017-06-28 01:55:50 -070021import structlog
Shad Ansarid1aa9e72017-06-23 21:34:25 -070022from voltha.adapters.iadapter import OltAdapter
Shad Ansarib32e31c2017-06-28 01:55:50 -070023from voltha.adapters.asfvolt16.asfvolt16_device_handler import Asfvolt16Handler
24
25log = structlog.get_logger()
Shad Ansari2fc48642017-06-10 01:40:32 -070026
Shad Ansarid1aa9e72017-06-23 21:34:25 -070027class Asfvolt16Adapter(OltAdapter):
Shad Ansari2fc48642017-06-10 01:40:32 -070028 def __init__(self, adapter_agent, config):
Shad Ansari14bcd992017-06-13 14:27:20 -070029 super(Asfvolt16Adapter, self).__init__(adapter_agent=adapter_agent,
30 config=config,
Shad Ansari96f817b2017-06-18 23:17:44 -070031 device_handler_class = Asfvolt16Handler,
Shad Ansari14bcd992017-06-13 14:27:20 -070032 name='asfvolt16_olt',
33 vendor='Edgecore',
Nikolay Titov89004ec2017-06-19 18:22:42 -040034 version='0.1',
35 device_type='asfvolt16_olt')
Shad Ansari2fc48642017-06-10 01:40:32 -070036 # register for adapter messages
37 self.adapter_agent.register_for_inter_adapter_messages()