Upgrade Network model from 2.1 to 4.1
[transportpce.git] / networkmodel / src / main / java / org / opendaylight / transportpce / networkmodel / listeners / DeviceListener221.java
1 /*
2  * Copyright © 2017 AT&T and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8
9 package org.opendaylight.transportpce.networkmodel.listeners;
10
11 import org.opendaylight.yang.gen.v1.http.org.openroadm.device.rev181019.ChangeNotification;
12 import org.opendaylight.yang.gen.v1.http.org.openroadm.device.rev181019.CreateTechInfoNotification;
13 import org.opendaylight.yang.gen.v1.http.org.openroadm.device.rev181019.OrgOpenroadmDeviceListener;
14 import org.opendaylight.yang.gen.v1.http.org.openroadm.device.rev181019.OtdrScanResult;
15
16 import org.slf4j.Logger;
17 import org.slf4j.LoggerFactory;
18
19 public class DeviceListener221 implements OrgOpenroadmDeviceListener {
20
21     private static final Logger LOG = LoggerFactory.getLogger(DeviceListener221.class);
22
23     /**
24      * Callback for change-notification.
25      *
26      * @param notification ChangeNotification object
27      */
28     @Override
29     public void onChangeNotification(ChangeNotification notification) {
30
31         LOG.info("Notification {} received {}", ChangeNotification.QNAME, notification);
32     }
33
34     @Override
35     public void onCreateTechInfoNotification(CreateTechInfoNotification notification) {
36
37     }
38
39     /**
40      * Callback for otdr-scan-result.
41      *
42      * @param notification OtdrScanResult object
43      */
44     @Override
45     public void onOtdrScanResult(OtdrScanResult notification) {
46
47         LOG.info("Notification {} received {}", OtdrScanResult.QNAME, notification);
48     }
49
50 }