@staticmethod
def set_options(options, parameters):
    """ set attributes for create or modify """
    if parameters.get('home_port') is not None:
        options['home-port'] = parameters['home_port']
    if parameters.get('subnet_name') is not None:
        options['subnet-name'] = parameters['subnet_name']
    if parameters.get('address') is not None:
        options['address'] = parameters['address']
    if parameters.get('netmask') is not None:
        options['netmask'] = parameters['netmask']
    if parameters.get('failover_policy') is not None:
        options['failover-policy'] = parameters['failover_policy']
    if parameters.get('firewall_policy') is not None:
        options['firewall-policy'] = parameters['firewall_policy']
    if parameters.get('is_auto_revert') is not None:
        options['is-auto-revert'] = 'true' if parameters['is_auto_revert'
            ] is True else 'false'
    if parameters.get('admin_status') is not None:
        options['administrative-status'] = parameters['admin_status']
    if parameters.get('force_subnet_association') is not None:
        options['force-subnet-association'] = 'true' if parameters[
            'force_subnet_association'] else 'false'
    if parameters.get('dns_domain_name') is not None:
        options['dns-domain-name'] = parameters['dns_domain_name']
    if parameters.get('listen_for_dns_query') is not None:
        options['listen-for-dns-query'] = str(parameters[
            'listen_for_dns_query'])
    if parameters.get('is_dns_update_enabled') is not None:
        options['is-dns-update-enabled'] = str(parameters[
            'is_dns_update_enabled'])
