Shad Ansari | 2fc4864 | 2017-06-10 01:40:32 -0700 | [diff] [blame] | 1 | # |
| 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 | """ |
| 18 | Asfvolt16 OLT adapter |
| 19 | """ |
| 20 | |
Shad Ansari | b32e31c | 2017-06-28 01:55:50 -0700 | [diff] [blame] | 21 | import structlog |
Shad Ansari | d1aa9e7 | 2017-06-23 21:34:25 -0700 | [diff] [blame] | 22 | from voltha.adapters.iadapter import OltAdapter |
Shad Ansari | b32e31c | 2017-06-28 01:55:50 -0700 | [diff] [blame] | 23 | from voltha.adapters.asfvolt16.asfvolt16_device_handler import Asfvolt16Handler |
| 24 | |
| 25 | log = structlog.get_logger() |
Shad Ansari | 2fc4864 | 2017-06-10 01:40:32 -0700 | [diff] [blame] | 26 | |
Shad Ansari | d1aa9e7 | 2017-06-23 21:34:25 -0700 | [diff] [blame] | 27 | class Asfvolt16Adapter(OltAdapter): |
Shad Ansari | 2fc4864 | 2017-06-10 01:40:32 -0700 | [diff] [blame] | 28 | def __init__(self, adapter_agent, config): |
Shad Ansari | 14bcd99 | 2017-06-13 14:27:20 -0700 | [diff] [blame] | 29 | super(Asfvolt16Adapter, self).__init__(adapter_agent=adapter_agent, |
| 30 | config=config, |
Shad Ansari | 96f817b | 2017-06-18 23:17:44 -0700 | [diff] [blame] | 31 | device_handler_class = Asfvolt16Handler, |
Shad Ansari | 14bcd99 | 2017-06-13 14:27:20 -0700 | [diff] [blame] | 32 | name='asfvolt16_olt', |
| 33 | vendor='Edgecore', |
Nikolay Titov | 89004ec | 2017-06-19 18:22:42 -0400 | [diff] [blame^] | 34 | version='0.1', |
| 35 | device_type='asfvolt16_olt') |
Shad Ansari | 2fc4864 | 2017-06-10 01:40:32 -0700 | [diff] [blame] | 36 | # register for adapter messages |
| 37 | self.adapter_agent.register_for_inter_adapter_messages() |