
Junos::Ez::Facts::Keeper.define( :ifd_style ) do  |ndev, facts|
  persona = uses :personality
  
  facts[:ifd_style] = case persona
  when :SWITCH
    :SWITCH
  else
    :CLASSIC
  end      
  
end



Junos::Ez::Facts::Keeper.define( :ifd_style ) do  |ndev, facts|
  persona,sw_style = uses :personality,:switch_style
  
  facts[:ifd_style] = case persona
  when :SWITCH
    if sw_style == :VLAN_L2NG
      :CLASSIC
    else
      :SWITCH
    end
  else
    :CLASSIC
  end      
  
end



Fix to identify ifd style based on L2NG system
Fix to identify ifd style based on L2NG system