# File lib/fog/network/openstack/requests/create_security_group.rb, line 48
        def create_security_group(options = {})
          # Spaces are NOT removed from name and description, as in case of compute sec groups
          tenant_id     = Fog::Mock.random_numbers(14).to_s
          sec_group_id  = Fog::UUID.uuid

          response = Excon::Response.new
          response.status = 201
          # by default every security group will come setup with an egress rule to "allow all out"
          data = {
            "security_group_rules" => [
              {"remote_group_id"   => nil,
               "direction"         => "egress",
               "remote_ip_prefix"  => nil,
               "protocol"          => nil,
               "ethertype"         => "IPv4",
               "tenant_id"         => tenant_id,
               "port_range_max"    => nil,
               "port_range_min"    => nil,
               "id"                => Fog::UUID.uuid,
               "security_group_id" => sec_group_id},
              {"remote_group_id"   => nil,
               "direction"         => "egress",
               "remote_ip_prefix"  => nil,
               "protocol"          => nil,
               "ethertype"         => "IPv6",
               "tenant_id"         => tenant_id,
               "port_range_max"    => nil,
               "port_range_min"    => nil,
               "id"                => Fog::UUID.uuid,
               "security_group_id" => sec_group_id}
            ],
            "id"                   => sec_group_id,
            "tenant_id"            => tenant_id,
            "name"                 => options[:name] || "",
            "description"          => options[:description] || ""
          }

          self.data[:security_groups][data["id"]] = data
          response.body = {"security_group" => data}
          response
        end