def slugify(s):
    """
    Slugify a string.

    This works in a less-agressive manner than Django's slugify, which simply
    drops most drops most non-alphanumeric characters and lowercases the entire
    string. It would likely to cause uniqueness conflicts for things like
    interface names, such as Eth1/2/3 and Eth12/3, which would slugify to be
    the same.

    >>> slugify('switch-foo01:Ethernet1/2')
    'switch-foo01:Ethernet1_2'

    :param s:
        String to slugify
    """

    disallowed_chars = ['/']
    replacement = '_'

    for char in disallowed_chars:
        s = s.replace(char, replacement)

    return s