/*
- * Copyright (c) 2016 Ericsson India Global Services Pvt Ltd. and others. All rights reserved.
+ * Copyright (c) 2016, 2017 Ericsson India Global Services Pvt Ltd. 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,
import org.apache.karaf.shell.commands.Command;
import org.apache.karaf.shell.console.OsgiCommandSupport;
import org.opendaylight.genius.itm.api.IITMProvider;
+import org.opendaylight.yangtools.yang.common.Uint64;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@Argument(index = 6, name = "transportZone", description = "transport_zone", required = false, multiValued = false)
private String transportZone;
- private static final Logger logger = LoggerFactory.getLogger(TepDelete.class);
+ private static final Logger LOG = LoggerFactory.getLogger(TepDelete.class);
private IITMProvider itmProvider;
public void setItmProvider(IITMProvider itmProvider) {
this.itmProvider = itmProvider;
}
+
@Override
protected Object doExecute() {
if (dpnId == null || portName == null || vlanId == null || ipAddress == null || subnetMask == null
|| transportZone == null) {
session.getConsole().println("Insufficient Arguments");
- session.getConsole().println("Correct Usage : exec tep-delete dpnId portName vlanId ipAddress subnetMask gatewayIp transportZone");
+ session.getConsole().println("Correct Usage : exec tep-delete dpnId portName vlanId ipAddress subnetMask "
+ + "gatewayIp transportZone");
return null;
}
- itmProvider.deleteVtep(dpnId, portName, vlanId, ipAddress, subnetMask, gatewayIp, transportZone, session);
- logger.trace("Executing delete TEP command");
+ itmProvider.deleteVtep(Uint64.valueOf(dpnId), portName, vlanId, ipAddress, subnetMask, gatewayIp,
+ transportZone);
+ LOG.trace("Executing delete TEP command");
return null;