<commit_before>Junos::Ez::Facts::Keeper.define( :switch_style ) do |ndev, facts|
  f_persona = uses :personality
    
  facts[:switch_style] = case f_persona
  when :SWITCH, :SRX_BRANCH
    case facts[:hardwaremodel]
    when /junosv-firefly/i
      :NONE
    when /^(ex9)|(ex43)/i
      :VLAN_L2NG
    else
      :VLAN
    end        
  when :MX, :SRX_HIGHEND
    :BRIDGE_DOMAIN
  else
    :NONE
  end

end
    
<commit_msg>Fix for PR 945745. Update switch style value for QFX device based on Junos software version<commit_after>Junos::Ez::Facts::Keeper.define( :switch_style ) do |ndev, facts|
  f_persona = uses :personality
    
  facts[:switch_style] = case f_persona
  when :SWITCH, :SRX_BRANCH
    case facts[:hardwaremodel]
    when /junosv-firefly/i
      :NONE
    when /^(ex9)|(ex43)/i
      :VLAN_L2NG
    when /^(qfx5)|(qfx3)/i
      if  facts[:version][0..3].to_f >= 13.2 
        :VLAN_L2NG
      else
        :VLAN
      end
    else
      :VLAN
    end        
  when :MX, :SRX_HIGHEND
    :BRIDGE_DOMAIN
  else
    :NONE
  end

end
    

{'fraction_non_alphanumeric': 0.10995260663507109, 'fraction_numerical': 0.02085308056872038, 'mean_word_length': 2.395498392282958, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2117767', 'n_tokens_mistral': 437, 'n_tokens_neox': 418, 'n_words': 90}