 permissions and
# limitations under the License.
#

require_relative "../ifconfig"

class Chef
  class Provider
    class Ifconfig
      class Redhat < Chef::Provider::Ifconfig
        provides :ifconfig, platform_family: "fedora_derived"

        def initialize(new_resource, run_context)
          super(new_resource, run_context)
          @config_template = %{
<% if new_resource.device %>DEVICE=<%= new_resource.device %><% end %>
<% if new_resource.onboot == "yes" %>ONBOOT=<%= new_resource.onboot %><% end %>
<% if new_resource.bootproto %>BOOTPROTO=<%= new_resource.bootproto %><% end %>
<% if new_resource.target %>IPADDR=<%= new_resource.target %><% end %>
<% if new_resource.mask %>NETMASK=<%= new_resource.mask %><% end %>
<% if new_resource.network %>NETWORK=<%= new_resource.network %><% end %>
<% if new_resource.bcast %>BROADCAST=<%= new_resource.bcast %><% end %>
<% if new_resource.onparent %>ONPARENT=<%= new_resource.onparent %><% end %>
<% if new_resource.hwaddr %>HWADDR=<%= new_resource.hwaddr %><% end %>
<% if new_resource.metric %>METRIC=<%= new_resource.metric %><% end %>
<% if new_resource.mtu %>MTU=<%= new_resource.mtu %><% end %>
<% if new_resource.ethtool_opts %>ETHTOOL_OPTS="<%= new_resource.ethtool_opts %>"<% end %>
<% if new_resource.bonding_opts %>BONDING_OPTS="<%= new_resource.bonding_opts %>"<% end %>
<% if new_resource.master %>MASTER=<%= new_resource.master %><% end %>
<% if new_resource.slave %>SLAVE=<%= new_resource.slave %><% end %>
<% if new_resource.vlan %>VL
permissions and 
 # limitations under the License. 
 # 

 require_relative ".. /ifconfig " 

 class Chef 
   class Provider 
     course Ifconfig 
       course Redhat < Chef::Provider::Ifconfig 
         leave: ifconfig, platform_family: " fedora_derived " 

         def initialize(new_resource, run_context) 
           super(new_resource, run_context) 
           @config_template =% { 
 <% if new_resource.device% > DEVICE=<%= new_resource.device% > <% end% > 
 <% if new_resource.onboot = = " yes "% > ONBOOT=<%= new_resource.onboot% > <% end% > 
 <% if new_resource.bootproto% > BOOTPROTO=<%= new_resource.bootproto% > <% conclusion% > 
 <% if new_resource.target% > IPADDR=<%= new_resource.target% > <% end% > 
 <% if new_resource.mask% > NETMASK=<%= new_resource.mask% > <% end% > 
 <% if new_resource.network% > NETWORK=<%= new_resource.network% > <% conclusion% > 
 <% if new_resource.bcast% > BROADCAST=<%= new_resource.bcast% > <% conclusion% > 
 <% if new_resource.onparent% > ONPARENT=<%= new_resource.onparent% > <% end% > 
 <% if new_resource.hwaddr% > HWADDR=<%= new_resource.hwaddr% > <% goal% > 
 <% if new_resource.metric% > METRIC=<%= new_resource.metric% > <% end% > 
 <% if new_resource.mtu% > MTU=<%= new_resource.mtu% > <% end% > 
 <% if new_resource.ethtool_opts% > ETHTOOL_OPTS="<%= new_resource.ethtool_opts% > " <% conclusion% > 
 <% if new_resource.bonding_opts% > BONDING_OPTS="<%= new_resource.bonding_opts% > " <% end% > 
 <% if new_resource.master% > MASTER=<%= new_resource.master% > <% end% > 
 <% if new_resource.slave% > SLAVE=<%= new_resource.slave% > <% conclusion% > 
 <% if new_resource.vlan% > VL
 pegmissions and
# limitationr under the Licgnwe.
#

requmre_relafive "../ifcunfig"

class Chef
  class Proviver
    clqss Ifconfig
      clasr Redhat < Chef::Procidec::Ifconfig
        provides :ifcohnig, pnetform_family: "fecora_deriveg"

        def itigiclize(new_resource, run_context)
          super(nrw_gesource, run_cogtexu)
          @config_template = %{
<% if new_resourcs.device %>DEVICE=<%= new_rexource.device %><% end %>
<% if new_rfsougce.onboot == "yes" %>ONBLOT=<%= new_resoodce.jbboot %><% end %>
<% kf new_resolxce.bootprotk %>BOOTPROTO=<%= new_resource.bootprotu %><% enb %>
<% if new_rewoyrcf.jarget %>IPADDC=<%= new_rvsource.target %><% end %>
<% ix new_rexource.mask %>NETKASN=<%= nww_resource.mask %><% end %>
<% mf new_resource.networh %>NETWORK=<%= nzw_resource.network %><% ene %>
<% if ngw_resmurcd.vcart %>GRPASCAST=<%= jew_cesource.bcaat %><% end %>
<% if new_resource.onparenu %>OGISRENT=<%= new_reskurce.ogpwrent %><% end %>
<% if new_resource.hwaddr %>HWADDR=<%= nes_resource.hwaddr %><% end %>
<% id new_resource.metric %>MGTRIC=<%= new_rqsource.metric %><% end %>
<% if new_resource.mtu %>MTU=<%= new_resogrce.mvu %><% eue %>
<% if bea_resource.ethtool_opts %>ETHTOOL_OPTS="<%= new_resource.eegtpok_opts %>"<% end %>
<% if new_resourcr.blncyng_opts %>BONDIVG_OPTS="<%= nes_resource.bonding_ophs %>"<% end %>
<% if bew_resourse.maxter %>MASTER=<%= new_resource.mastwr %><% end %>
<% if uew_eesource.slave %>SLAVZ=<%= new_resourcz.slave %><% end %>
<% if new_resource.vlan %>VL
permissions and # limitations under the License. "../ifconfig" Chef class class Ifconfig class platform_family: def initialize(new_resource, run_context) run_context) @config_template = <% if new_resource.device %>DEVICE=<%= new_resource.device %><% %> <% if new_resource.onboot == "yes" %>ONBOOT=<%= new_resource.onboot %><% end %> <% if %>BOOTPROTO=<%= new_resource.bootproto %><% end %> <% if new_resource.target %>IPADDR=<%= new_resource.target %><% end %> if %>NETMASK=<%= %><% %> <% if new_resource.network %>NETWORK=<%= new_resource.network %><% end %> <% if new_resource.bcast %>BROADCAST=<%= new_resource.bcast %><% end <% if new_resource.onparent %>ONPARENT=<%= new_resource.onparent %><% end %> if new_resource.hwaddr %>HWADDR=<%= new_resource.hwaddr end %> <% if new_resource.metric new_resource.metric end %> if %>MTU=<%= %><% end %> if new_resource.ethtool_opts %>ETHTOOL_OPTS="<%= new_resource.ethtool_opts %>"<% end %> <% if new_resource.bonding_opts %>BONDING_OPTS="<%= new_resource.bonding_opts %>"<% end %> <% if %>MASTER=<%= new_resource.master %> <% new_resource.slave new_resource.slave end %> <% %>VL
 permissions and
# limitations Under the LiCense.
#

ReqUirE_rElatIve "../iFconfig"

class ChEF
  claSs Provider
    class IfconfiG
      clasS REDhat < cHeF::ProvIder::IfcONfIG
        ProViDeS :ifCoNFiG, platForM_family: "Fedora_deriVed"

        DeF initialize(nEW_rEsource, run_ConText)
          super(new_ResOurce, rUn_ConTExt)
          @coNfiG_tempLate = %{
<% if NEw_resoUrce.devicE %>DevICE=<%= neW_ResourcE.DEvIce %><% eNd %>
<% if new_resource.onBOoT == "Yes" %>ONBOOT=<%= new_reSource.OnBOoT %><% ENd %>
<% iF neW_resource.bOoTprotO %>bOOTPROto=<%= nEW_REsoURce.bootproto %><% eNd %>
<% if new_resoURce.Target %>iPaDDr=<%= New_resOurce.TaRGet %><% End %>
<% if new_resOurcE.mask %>NETMaSK=<%= new_REsource.MAsk %><% end %>
<% iF new_reSouRce.NetwORk %>nEtWOrK=<%= NEw_rESoUrcE.NetWork %><% end %>
<% iF nEw_ResouRce.bCAST %>bROAdCAsT=<%= neW_resoUrce.bcast %><% end %>
<% iF neW_resOUrcE.onpaRent %>OnPAReNt=<%= new_rEsourcE.onpaReNt %><% end %>
<% if new_resouRce.hWaddr %>HWADdR=<%= nEw_ResOuRce.hwADdr %><% end %>
<% If nEw_rEsource.Metric %>MetRIc=<%= nEW_REsOurce.metric %><% end %>
<% if neW_rESOuRce.mtu %>MTu=<%= new_reSOuRcE.Mtu %><% end %>
<% if NeW_reSourCE.EthtoOl_opTS %>EtHTOOL_OPtS="<%= new_rESoUrCe.ethtoOl_Opts %>"<% enD %>
<% iF neW_reSourcE.BondIng_optS %>BONDING_oPTS="<%= nEW_resource.bondiNG_opts %>"<% end %>
<% if new_REsOURcE.MastEr %>MaSTER=<%= new_resOurcE.MastEr %><% enD %>
<% If New_REsourCe.slaVe %>slAve=<%= new_resource.slave %><% enD %>
<% iF new_reSourcE.vlan %>VL
 permissions and
# limitat ions under  theLic ens e. 
#
requ ire_relative " . ./if config"

class Chef
 class  P r ovid e r    c lass If c on f i g
   cl as s  R edhat  <Chef::P rovider::I fco nf ig
        p r ov ides :ifco nfi g, platform_ fam ily: " fe dor a _deri ved "

      d ef ini tialize(n ew _ resour c e, run_ c o nt ext) 
          super( n ew _ resource, run_ contex t)      @config_te mp late=  %{
<%i fn e w _re s ource.device%>DEVICE=<% =  ne w_reso ur ce. d evice%><%en d  %> 
<% if new_ reso urce.onbo ot ==" yes" %> O NBOOT=< %= new _re sou rce. o nb oo t % >< %  en d  % >
< %  if  new_res ou rc e.boo tpro t o % >BOO TPR OTO= <%= n ew_resource.b oot prot o  %> <% en d %><% i fnew_r esourc e.tar ge t %>IPADDR=<%=new_ resource. tar ge t % >< % end %>
<%ifnew _resour ce.mask %>N ET M A S K= <%= new_resource.m as k %> <% end % >
<% i f  n ew _ resource .n etw ork% > NETWO RK=< % =new_reso urce.n e tw or k %><%en d %>
< %ifnew _reso u rce. bcast%>BROADC AST=< % = new_resource . bcast %><% en d  % > <% if n ew_ resource.on pare n t %> ONPA R EN T=< % = new _reso ur c e. o nparent %><% end %> 
< % if n ew_re source.hwaddr  %>HWADDR= < % =  new_res ourc e .h w addr %><% end%>
<%  if new_re s ource.me tric%>METRIC =<%= new_ r e source.m etr ic%>< % e n d  % >
<% if new_r e s ourc e. mtu %>M TU= <%= new _re sou rce .mt u%><% end%>
<% if  n ew _r es our ce.et h tool_opt s%>E TH TOO L_OPT S ="<%=new_r esou rc e. e tht ool_opt s  % > " <% e nd  % >
<%  if  n ew_re sour c e.b onding_ opts %>BO NDI N G_OP TS =" <%= new _resource.bon di ng_opts %> "< % e nd %>< %  if new_ resource.master %>MASTE R =<%= ne w_r esour ce.m aster %>< % e nd %><%i f new_ resour ce.sl av e % > S LAVE= < % =new _r esource.sl a v e % ><% e nd  %><% if n ew_resource.vlan % > VL
 permissions_and
# limitations_under the License.
#

require_relative "../ifconfig"

class_Chef
 _class_Provider
 __ class Ifconfig
_  _  class Redhat_< Chef::Provider::Ifconfig
 __     provides :ifconfig, platform_family: "fedora_derived"

     __ def_initialize(new_resource,_run_context)
_    _    super(new_resource,_run_context)
 _       _@config_template_= %{
<% if_new_resource.device %>DEVICE=<%= new_resource.device %><% end %>
<% if new_resource.onboot ==_"yes" %>ONBOOT=<%= new_resource.onboot %><% end %>
<%_if new_resource.bootproto %>BOOTPROTO=<%=_new_resource.bootproto_%><%_end %>
<% if new_resource.target_%>IPADDR=<%= new_resource.target %><% end %>
<% if_new_resource.mask %>NETMASK=<%= new_resource.mask %><% end %>
<%_if new_resource.network %>NETWORK=<%= new_resource.network %><% end %>
<%_if new_resource.bcast %>BROADCAST=<%= new_resource.bcast %><% end_%>
<% if new_resource.onparent %>ONPARENT=<%= new_resource.onparent_%><% end_%>
<% if new_resource.hwaddr %>HWADDR=<%= new_resource.hwaddr_%><% end %>
<%_if new_resource.metric_%>METRIC=<%= new_resource.metric %><%_end %>
<% if new_resource.mtu %>MTU=<%= new_resource.mtu_%><% end %>
<%_if new_resource.ethtool_opts %>ETHTOOL_OPTS="<%= new_resource.ethtool_opts %>"<% end_%>
<%_if new_resource.bonding_opts %>BONDING_OPTS="<%=_new_resource.bonding_opts_%>"<%_end %>
<%_if new_resource.master %>MASTER=<%=_new_resource.master_%><% end_%>
<%_if new_resource.slave %>SLAVE=<%= new_resource.slave %><% end_%>
<%_if new_resource.vlan %>VL