/* * Copyright (c) 2015 CableLabs 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.unimgr.cli; import java.math.BigInteger; import org.apache.karaf.shell.commands.Command; import org.apache.karaf.shell.commands.Option; import org.apache.karaf.shell.console.OsgiCommandSupport; import org.opendaylight.unimgr.api.IUnimgrConsoleProvider; import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev100924.IpAddress; import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress; import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.unimgr.rev151012.UniAugmentation; import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.unimgr.rev151012.UniAugmentationBuilder; import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.unimgr.rev151012.uni.SpeedBuilder; @Command(name = "uni-add", scope = "uni", description = "Adds an uni to the controller.") public class UniAddShellCommand extends OsgiCommandSupport { protected IUnimgrConsoleProvider provider; @Option(name = "-pm", aliases = { "--physical-medium" }, description = "The physical medium.\n-pm / --physical-medium ", required = false, multiValued = false) private String physicalMedium = "UNI TypeFull Duplex 2 Physical Interface"; @Option(name = "-ma", aliases = { "--mac-address" }, description = "The mac address.\n-ma / --mac-address ", required = true, multiValued = false) private String macAddress = "any"; @Option(name = "-m", aliases = { "--mode" }, description = "The mode.\n-m / --mode ", required = false, multiValued = false) private String mode = "Full Duplex"; @Option(name = "-ml", aliases = { "--mac-layer" }, description = "The mac layer.\n-ml / --mac-layer