def _devcfg_url(id_=None, runtime=False):
    """
    Generate config path for a device
    :param id_:
    :param runtime:
    :return:
    """
    return '/api/cfg/snmpdevice{}{}'.format('' if not id_ else '/{}'.format
        (id_), '/runtime' if runtime else '')
