def METHOD_NAME(dev, brName):
    if not networkConfig.isBridgeSupported():
        logging.debug("bridge is not supported")
        return False
    if networkConfig.isBridgeEnslavedWithDevices(brName):
        logging.debug("bridge: %s has devices enslaved"%brName)
        return False
    cmds = ""
    if not networkConfig.isBridge(brName):
        cmds = "ip link add name %s type bridge ;"%brName
    cmds += "ifconfig %s up;"%brName
    cmds += "ip link set dev %s master %s"%(dev, brName)
    return bash(cmds).isSuccess()