1 Index: packstack/puppet/modules/network/lib/puppet/provider/network_config/redhat.rb
2 --- a/packstack/puppet/modules/network/lib/puppet/provider/network_config/redhat.rb
3 +++ b/packstack/puppet/modules/network/lib/puppet/provider/network_config/redhat.rb
6 pairs = self.unmunge props
8 + ip_version = provider.send(:family)
9 + if (ip_version.to_s == "inet6")
10 + pairs = self.ipv6_fixup pairs
13 content = pairs.inject('') do |str, (key, val)|
14 str << %{#{key}=#{val}\n}
20 + def self.ipv6_fixup(pairs)
21 + pairs['IPV6INIT'] = 'yes'
23 + if (pairs.include? 'NETMASK' and pairs.include? 'IPADDR')
24 + pairs['IPV6ADDR'] = pairs['IPADDR'].to_s + "/" + pairs['NETMASK'].to_s
25 + pairs.delete('NETMASK')
26 + pairs.delete('IPADDR')
27 + elsif (pairs.include? 'IPADDR')
28 + pairs['IPV6ADDR'] = pairs['IPADDR'].to_s
29 + pairs.delete('IPADDR')
32 + if (pairs.include? 'GATEWAY')
33 + pairs['IPV6_DEFAULTGW'] = pairs['GATEWAY']
34 + pairs.delete('GATEWAY')
37 + if (pairs['BOOTPROTO'].to_s == 'dhcp')
38 + pairs['DHCPV6C'] = 'yes'
39 + pairs['DHCLIENTARGS'] = '-1'
46 # HEADER: This file is is being managed by puppet. Changes to