/*
 * Copyright 2015 - 2016 Boling Consulting Solutions, bcsw.net
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.onosproject.restconf.ctl;

import org.onosproject.restconf.RestId;
import org.onosproject.restconf.RestconfDeviceInfo;
import org.onosproject.restconf.RestconfDeviceListener;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created by cboling on 3/28/16.
 */
public class RestconfDeviceListerImpl implements RestconfDeviceListener {

    final List<RestId> removedDevices = new ArrayList<>();
    final List<RestId> addedDevices = new ArrayList<>();
    final List<RestId> changedDevices = new ArrayList<>();
    // final Map<RestId, OFPortStatus> portChangedDevices = new HashMap<>();

    /**
     * Notifies that the RESTCONF node was added.
     *
     * @param devInfo Device information
     */
    public void deviceAdded(RestconfDeviceInfo devInfo) {
        // TODO: Implement this

        // Create device ID (may need to be port of RestconfDeviceInfo)

        // Create annotations & Device description

        // Call into provider service
    }

    /**
     * Notifies that the RESTCONF node was removed.
     *
     * @param id Device ID
     */
    public void deviceRemoved(RestId id) {
        // TODO: Implement this
    }
}

@@ -687,23 +687,108 @@
 ect.
-restconf.RestId
+net.DeviceId;%0Aimport org.onosproject.restconf.RestId;%0Aimport org.onosproject.restconf.RestconfDevice
 ;%0Aim
@@ -1450,31 +1450,34 @@
  dev
-Info Device information
+ice RESTCONF Device object
 %0A   
@@ -1527,20 +1527,15 @@
 vice
-Info devInfo
+ device
 ) %7B%0A
@@ -1873,17 +1873,279 @@
 ved(
-RestId id
+DeviceId id) %7B%0A        // TODO: Implement this%0A    %7D%0A%0A    /**%0A     * Notifies that the RESTCONF node was removed.%0A     *%0A     * @param id   Device ID%0A     * @param info Updated device information%0A     */%0A    public void deviceModified(DeviceId id, RestconfDeviceInfo info
 ) %7B%0A

Implement required methods (skeleton)