upgrade openroadm models to 2.2.1
[transportpce.git] / networkmodel / src / main / java / org / opendaylight / transportpce / networkmodel / listeners / DeOperationsListener221.java
diff --git a/networkmodel/src/main/java/org/opendaylight/transportpce/networkmodel/listeners/DeOperationsListener221.java b/networkmodel/src/main/java/org/opendaylight/transportpce/networkmodel/listeners/DeOperationsListener221.java
new file mode 100644 (file)
index 0000000..61961c3
--- /dev/null
@@ -0,0 +1,30 @@
+/*
+ * Copyright © 2017 AT&T and others.  All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
+
+package org.opendaylight.transportpce.networkmodel.listeners;
+
+import org.opendaylight.yang.gen.v1.http.org.openroadm.de.operations.rev181019.OrgOpenroadmDeOperationsListener;
+import org.opendaylight.yang.gen.v1.http.org.openroadm.de.operations.rev181019.RestartNotification;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+public class DeOperationsListener221 implements OrgOpenroadmDeOperationsListener {
+
+    private static final Logger LOG = LoggerFactory.getLogger(DeOperationsListener221.class);
+
+    /**
+     * Callback for restart-notification.
+     *
+     * @param notification RestartNotification object
+     */
+    @Override
+    public void onRestartNotification(RestartNotification notification) {
+        LOG.info("Notification {} received {}", RestartNotification.QNAME, notification);
+    }
+
+}
\ No newline at end of file