def METHOD_NAME(self):
    '''
    To get all the parameter for the test
    '''
    local = LocalHost()
    self.networkinterface = None
    interfaces = os.listdir('/sys/class/net')
    device = self.params.get("interface", default=None)
    if device in interfaces:
        self.iface = device
    elif local.validate_mac_addr(device) and device in local.get_all_hwaddr():
        self.iface = local.get_interface_by_hwaddr(device).name
    else:
        self.cancel("%s interface is not available" % device)
    self.ipaddr = self.params.get("host_ip", default="")
    self.netmask = self.params.get("netmask", default="")
    self.networkinterface = NetworkInterface(self.iface, local)
    try:
        self.networkinterface.add_ipaddr(self.ipaddr, self.netmask)
        self.networkinterface.save(self.ipaddr, self.netmask)
    except Exception:
        self.networkinterface.save(self.ipaddr, self.netmask)
    self.networkinterface.bring_up()
    self.peer = self.params.get("peer_ip")
    if not self.peer:
        self.cancel("No peer provided")
    if self.networkinterface.ping_check(self.peer, count=2) is not None:
        self.cancel("No connection to peer")
    self.switch_name = self.params.get("switch_name", '*', default="")
    self.userid = self.params.get("userid", '*', default="")
    self.password = self.params.get("password", '*', default="")
    self.port_id = self.params.get("port_id", default="")
    if not self.port_id:
        self.cancel("user should specify port id")
    self.switch_login(self.switch_name, self.userid, self.password)