    # File lib/chef/provider/route.rb, line 163
        def generate_command(action)
          common_route_items = ''
          common_route_items << "/#{MASK[@new_resource.netmask.to_s]}" if @new_resource.netmask
          common_route_items << " via #{@new_resource.gateway} " if @new_resource.gateway

          case action
          when :add
            command = "ip route replace #{@new_resource.target}"
            command << common_route_items
            command << " dev #{@new_resource.device} " if @new_resource.device
          when :delete
            command = "ip route delete #{@new_resource.target}"
            command << common_route_items
          end

          return command
        end