cookbooks/fb_helpers/libraries/node_methods.rb
# We can change interface configs if nw_changes_allowed? or we are operating
# on a DSR VIP
We can change interface configs if nw_changes_allowed. or we are operating
on a DSR VIP
We can change interface configs if nw_changes_allowed . or we are operating on a DSR VIP
def interface_change_allowed?(interface)
      method = node['fb_helpers']['interface_change_allowed_method']
      if method
        return method.call(node, interface)
      else
        return self.nw_changes_allowed? ||
          ['ip6tnl0', 'tunlany0', 'tunl0'].include?(interface) ||
          interface.match(Regexp.new('^tunlany\d+:\d+'))
      end
    end
def interface_change_allowed? ( interface ) method = node [ 'fb_helpers' ] [ 'interface_change_allowed_method' ] if method return method . call ( node , interface ) else return self . nw_changes_allowed? || [ 'ip6tnl0' , 'tunlany0' , 'tunl0' ] . include? ( interface ) || interface . match ( Regexp . new ( '^tunlany\d+:\d+' ) ) end end
We can change interface configs if nw_changes_allowed?
We can change interface configs if nw_changes_allowed?
interface
<not_specific>