# File lib/fog/network/openstack/requests/create_port.rb, line 5
        def create_port(network_id, options = {})
          data = {
            'port' => {
              'network_id' => network_id,
            }
          }

          vanilla_options = [:name, :fixed_ips, :mac_address, :admin_state_up,
                             :device_owner, :device_id, :tenant_id, :security_groups,
                             :allowed_address_pairs]
          vanilla_options.reject { |o| options[o].nil? }.each do |key|
            data['port'][key] = options[key]
          end

          request(
            :body    => Fog::JSON.encode(data),
            :expects => [201],
            :method  => 'POST',
            :path    => 'ports'
          )
        end