'Set interface default or unconfigured'

def default_switchport(self, ifname):

    change = False
    if (self.intf_info['linkType'] != 'access'):
        self.updates_cmd.append(('interface    %s' % ifname))
        self.updates_cmd.append('port    link-type    access')
        self.updates_cmd.append('port    default    vlan    1')
        change = True
    elif (self.intf_info['pvid'] != '1'):
        self.updates_cmd.append(('interface    %s' % ifname))
        self.updates_cmd.append('port    default    vlan    1')
        change = True
    if (not change):
        return
    conf_str = (CE_NC_SET_DEFAULT_PORT % ifname)
    rcv_xml = set_nc_config(self.module, conf_str)
    self.check_response(rcv_xml, 'DEFAULT_INTF_VLAN')
    self.changed = True
