package org.interonet.ldm.Core;

import java.io.IOException;

public class LDMAgent {
    private LDMCore ldmCore;

    public LDMAgent(LDMCore ldmCore) {
        this.ldmCore = ldmCore;
    }

    public String createTunnelSW2SW(int switchPortPeer, int peerSwitchPortPeer) {
        return null;
    }

    public String createTunnelSW2VM(int switchPortPeeronTT, int peerVMPortPeeronTT) {
        return null;
    }

    public void addSWitchConf(Integer switchID, String controllerIP, int controllerPort) throws IOException, InterruptedException {
        ldmCore.addSwitchConf(switchID, controllerIP, controllerPort);
    }

    public String powerOnVM(Integer vmID) {
        String OnResult = "failure";
        OnResult = ldmCore.powerOnVM(vmID);
        return OnResult;
    }

    public String deleteTunnelSW2SW(int switchPortPeeronTT, int athrSwitchPortPeeronTT) {
        return null;
    }

    public String deleteTunnelSW2VM(int switchPortPeeronTT, int peerVMPortPeeronTT) {
        return null;
    }

    public String deleteSWitchConf(Integer switchID) {
        return null;
    }


    public void resetSwitchConf(Integer switchID) throws IOException, InterruptedException {
        ldmCore.resetSwitchConf(switchID);
    }

    public String powerOffSwitch(Integer switchID) {
        return null;
    }

    public String powerOffVM(Integer vmID) {
        String OffResult = "failure";
        OffResult = ldmCore.powerOffVM(vmID);
        return OffResult;
    }
    
    public String powerOnSwitch(Integer switchID)
    {
    	String OffResult = "failure";
        OffResult = ldmCore.powerOnSwitch(switchID);
        return OffResult;
    }
    
    public String powerOffSwitch(Integer switchID)
    {
    	String OffResult = "failure";
        OffResult = ldmCore.powerOffSwitch(switchID);
        return OffResult;
    }
}

@@ -1241,88 +1241,8 @@
  %7D%0A%0A
-    public String powerOffSwitch(Integer switchID) %7B%0A        return null;%0A    %7D%0A
 %0A   

Update LDMAgent.java